
io.fabric8.kubernetes.api.model.ListOptionsFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;
/**
* Generated
*/
public class ListOptionsFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.ListOptionsFluent{
public ListOptionsFluentImpl() {
}
public ListOptionsFluentImpl(io.fabric8.kubernetes.api.model.ListOptions instance) {
this.withAllowWatchBookmarks(instance.getAllowWatchBookmarks());
this.withApiVersion(instance.getApiVersion());
this.withContinue(instance.getContinue());
this.withFieldSelector(instance.getFieldSelector());
this.withKind(instance.getKind());
this.withLabelSelector(instance.getLabelSelector());
this.withLimit(instance.getLimit());
this.withResourceVersion(instance.getResourceVersion());
this.withResourceVersionMatch(instance.getResourceVersionMatch());
this.withTimeoutSeconds(instance.getTimeoutSeconds());
this.withWatch(instance.getWatch());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
private java.lang.Boolean allowWatchBookmarks;
private java.lang.String apiVersion;
private java.lang.String _continue;
private java.lang.String fieldSelector;
private java.lang.String kind;
private java.lang.String labelSelector;
private java.lang.Long limit;
private java.lang.String resourceVersion;
private java.lang.String resourceVersionMatch;
private java.lang.Long timeoutSeconds;
private java.lang.Boolean watch;
private java.util.Map additionalProperties;
public java.lang.Boolean getAllowWatchBookmarks() {
return this.allowWatchBookmarks;
}
public A withAllowWatchBookmarks(java.lang.Boolean allowWatchBookmarks) {
this.allowWatchBookmarks=allowWatchBookmarks; return (A) this;
}
public java.lang.Boolean hasAllowWatchBookmarks() {
return this.allowWatchBookmarks != null;
}
public java.lang.String getApiVersion() {
return this.apiVersion;
}
public A withApiVersion(java.lang.String apiVersion) {
this.apiVersion=apiVersion; return (A) this;
}
public java.lang.Boolean hasApiVersion() {
return this.apiVersion != null;
}
/**
* Method is deprecated. use withApiVersion instead.
*/
@java.lang.Deprecated
public A withNewApiVersion(java.lang.String arg0) {
return (A)withApiVersion(new String(arg0));
}
public java.lang.String getContinue() {
return this._continue;
}
public A withContinue(java.lang.String _continue) {
this._continue=_continue; return (A) this;
}
public java.lang.Boolean hasContinue() {
return this._continue != null;
}
/**
* Method is deprecated. use withContinue instead.
*/
@java.lang.Deprecated
public A withNewContinue(java.lang.String arg0) {
return (A)withContinue(new String(arg0));
}
public java.lang.String getFieldSelector() {
return this.fieldSelector;
}
public A withFieldSelector(java.lang.String fieldSelector) {
this.fieldSelector=fieldSelector; return (A) this;
}
public java.lang.Boolean hasFieldSelector() {
return this.fieldSelector != null;
}
/**
* Method is deprecated. use withFieldSelector instead.
*/
@java.lang.Deprecated
public A withNewFieldSelector(java.lang.String arg0) {
return (A)withFieldSelector(new String(arg0));
}
public java.lang.String getKind() {
return this.kind;
}
public A withKind(java.lang.String kind) {
this.kind=kind; return (A) this;
}
public java.lang.Boolean hasKind() {
return this.kind != null;
}
/**
* Method is deprecated. use withKind instead.
*/
@java.lang.Deprecated
public A withNewKind(java.lang.String arg0) {
return (A)withKind(new String(arg0));
}
public java.lang.String getLabelSelector() {
return this.labelSelector;
}
public A withLabelSelector(java.lang.String labelSelector) {
this.labelSelector=labelSelector; return (A) this;
}
public java.lang.Boolean hasLabelSelector() {
return this.labelSelector != null;
}
/**
* Method is deprecated. use withLabelSelector instead.
*/
@java.lang.Deprecated
public A withNewLabelSelector(java.lang.String arg0) {
return (A)withLabelSelector(new String(arg0));
}
public java.lang.Long getLimit() {
return this.limit;
}
public A withLimit(java.lang.Long limit) {
this.limit=limit; return (A) this;
}
public java.lang.Boolean hasLimit() {
return this.limit != null;
}
public java.lang.String getResourceVersion() {
return this.resourceVersion;
}
public A withResourceVersion(java.lang.String resourceVersion) {
this.resourceVersion=resourceVersion; return (A) this;
}
public java.lang.Boolean hasResourceVersion() {
return this.resourceVersion != null;
}
/**
* Method is deprecated. use withResourceVersion instead.
*/
@java.lang.Deprecated
public A withNewResourceVersion(java.lang.String arg0) {
return (A)withResourceVersion(new String(arg0));
}
public java.lang.String getResourceVersionMatch() {
return this.resourceVersionMatch;
}
public A withResourceVersionMatch(java.lang.String resourceVersionMatch) {
this.resourceVersionMatch=resourceVersionMatch; return (A) this;
}
public java.lang.Boolean hasResourceVersionMatch() {
return this.resourceVersionMatch != null;
}
/**
* Method is deprecated. use withResourceVersionMatch instead.
*/
@java.lang.Deprecated
public A withNewResourceVersionMatch(java.lang.String arg0) {
return (A)withResourceVersionMatch(new String(arg0));
}
public java.lang.Long getTimeoutSeconds() {
return this.timeoutSeconds;
}
public A withTimeoutSeconds(java.lang.Long timeoutSeconds) {
this.timeoutSeconds=timeoutSeconds; return (A) this;
}
public java.lang.Boolean hasTimeoutSeconds() {
return this.timeoutSeconds != null;
}
public java.lang.Boolean getWatch() {
return this.watch;
}
public A withWatch(java.lang.Boolean watch) {
this.watch=watch; return (A) this;
}
public java.lang.Boolean hasWatch() {
return this.watch != null;
}
public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
}
public A addToAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
}
public A removeFromAdditionalProperties(java.lang.String key) {
if(this.additionalProperties == null) { return (A) this; }
if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
}
public A removeFromAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
}
public java.util.Map getAdditionalProperties() {
return this.additionalProperties;
}
public A withAdditionalProperties(java.util.Map additionalProperties) {
if (additionalProperties == null) { this.additionalProperties = null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
}
public java.lang.Boolean hasAdditionalProperties() {
return this.additionalProperties != null;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListOptionsFluentImpl that = (ListOptionsFluentImpl) o;
if (allowWatchBookmarks != null ? !allowWatchBookmarks.equals(that.allowWatchBookmarks) :that.allowWatchBookmarks != null) return false;
if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false;
if (_continue != null ? !_continue.equals(that._continue) :that._continue != null) return false;
if (fieldSelector != null ? !fieldSelector.equals(that.fieldSelector) :that.fieldSelector != null) return false;
if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false;
if (labelSelector != null ? !labelSelector.equals(that.labelSelector) :that.labelSelector != null) return false;
if (limit != null ? !limit.equals(that.limit) :that.limit != null) return false;
if (resourceVersion != null ? !resourceVersion.equals(that.resourceVersion) :that.resourceVersion != null) return false;
if (resourceVersionMatch != null ? !resourceVersionMatch.equals(that.resourceVersionMatch) :that.resourceVersionMatch != null) return false;
if (timeoutSeconds != null ? !timeoutSeconds.equals(that.timeoutSeconds) :that.timeoutSeconds != null) return false;
if (watch != null ? !watch.equals(that.watch) :that.watch != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(allowWatchBookmarks, apiVersion, _continue, fieldSelector, kind, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, additionalProperties, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy