
io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1CustomResourceDefinitionVersionBuilder extends V1CustomResourceDefinitionVersionFluentImpl implements VisitableBuilder {
V1CustomResourceDefinitionVersionFluent> fluent;
Boolean validationEnabled;
public V1CustomResourceDefinitionVersionBuilder() {
this(true);
}
public V1CustomResourceDefinitionVersionBuilder(Boolean validationEnabled) {
this(new V1CustomResourceDefinitionVersion(), validationEnabled);
}
public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent> fluent) {
this(fluent, true);
}
public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1CustomResourceDefinitionVersion(), validationEnabled);
}
public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent> fluent,V1CustomResourceDefinitionVersion instance) {
this(fluent, instance, true);
}
public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent> fluent,V1CustomResourceDefinitionVersion instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns());
fluent.withDeprecated(instance.getDeprecated());
fluent.withDeprecationWarning(instance.getDeprecationWarning());
fluent.withName(instance.getName());
fluent.withSchema(instance.getSchema());
fluent.withServed(instance.getServed());
fluent.withStorage(instance.getStorage());
fluent.withSubresources(instance.getSubresources());
this.validationEnabled = validationEnabled;
}
public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersion instance) {
this(instance,true);
}
public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersion instance,Boolean validationEnabled) {
this.fluent = this;
this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns());
this.withDeprecated(instance.getDeprecated());
this.withDeprecationWarning(instance.getDeprecationWarning());
this.withName(instance.getName());
this.withSchema(instance.getSchema());
this.withServed(instance.getServed());
this.withStorage(instance.getStorage());
this.withSubresources(instance.getSubresources());
this.validationEnabled = validationEnabled;
}
public V1CustomResourceDefinitionVersion build() {
V1CustomResourceDefinitionVersion buildable = new V1CustomResourceDefinitionVersion();
buildable.setAdditionalPrinterColumns(fluent.getAdditionalPrinterColumns());
buildable.setDeprecated(fluent.isDeprecated());
buildable.setDeprecationWarning(fluent.getDeprecationWarning());
buildable.setName(fluent.getName());
buildable.setSchema(fluent.getSchema());
buildable.setServed(fluent.isServed());
buildable.setStorage(fluent.isStorage());
buildable.setSubresources(fluent.getSubresources());
return buildable;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1CustomResourceDefinitionVersionBuilder that = (V1CustomResourceDefinitionVersionBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy