
io.fabric8.kubernetes.api.model.version.InfoFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.version;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;
/**
* Generated
*/
public class InfoFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.version.InfoFluent{
public InfoFluentImpl() {
}
public InfoFluentImpl(io.fabric8.kubernetes.api.model.version.Info instance) {
this.withBuildDate(instance.getBuildDate());
this.withCompiler(instance.getCompiler());
this.withGitCommit(instance.getGitCommit());
this.withGitTreeState(instance.getGitTreeState());
this.withGitVersion(instance.getGitVersion());
this.withGoVersion(instance.getGoVersion());
this.withMajor(instance.getMajor());
this.withMinor(instance.getMinor());
this.withPlatform(instance.getPlatform());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
private java.lang.String buildDate;
private java.lang.String compiler;
private java.lang.String gitCommit;
private java.lang.String gitTreeState;
private java.lang.String gitVersion;
private java.lang.String goVersion;
private java.lang.String major;
private java.lang.String minor;
private java.lang.String platform;
private java.util.Map additionalProperties;
public java.lang.String getBuildDate() {
return this.buildDate;
}
public A withBuildDate(java.lang.String buildDate) {
this.buildDate=buildDate; return (A) this;
}
public java.lang.Boolean hasBuildDate() {
return this.buildDate != null;
}
/**
* Method is deprecated. use withBuildDate instead.
*/
@java.lang.Deprecated
public A withNewBuildDate(java.lang.String arg0) {
return (A)withBuildDate(new String(arg0));
}
public java.lang.String getCompiler() {
return this.compiler;
}
public A withCompiler(java.lang.String compiler) {
this.compiler=compiler; return (A) this;
}
public java.lang.Boolean hasCompiler() {
return this.compiler != null;
}
/**
* Method is deprecated. use withCompiler instead.
*/
@java.lang.Deprecated
public A withNewCompiler(java.lang.String arg0) {
return (A)withCompiler(new String(arg0));
}
public java.lang.String getGitCommit() {
return this.gitCommit;
}
public A withGitCommit(java.lang.String gitCommit) {
this.gitCommit=gitCommit; return (A) this;
}
public java.lang.Boolean hasGitCommit() {
return this.gitCommit != null;
}
/**
* Method is deprecated. use withGitCommit instead.
*/
@java.lang.Deprecated
public A withNewGitCommit(java.lang.String arg0) {
return (A)withGitCommit(new String(arg0));
}
public java.lang.String getGitTreeState() {
return this.gitTreeState;
}
public A withGitTreeState(java.lang.String gitTreeState) {
this.gitTreeState=gitTreeState; return (A) this;
}
public java.lang.Boolean hasGitTreeState() {
return this.gitTreeState != null;
}
/**
* Method is deprecated. use withGitTreeState instead.
*/
@java.lang.Deprecated
public A withNewGitTreeState(java.lang.String arg0) {
return (A)withGitTreeState(new String(arg0));
}
public java.lang.String getGitVersion() {
return this.gitVersion;
}
public A withGitVersion(java.lang.String gitVersion) {
this.gitVersion=gitVersion; return (A) this;
}
public java.lang.Boolean hasGitVersion() {
return this.gitVersion != null;
}
/**
* Method is deprecated. use withGitVersion instead.
*/
@java.lang.Deprecated
public A withNewGitVersion(java.lang.String arg0) {
return (A)withGitVersion(new String(arg0));
}
public java.lang.String getGoVersion() {
return this.goVersion;
}
public A withGoVersion(java.lang.String goVersion) {
this.goVersion=goVersion; return (A) this;
}
public java.lang.Boolean hasGoVersion() {
return this.goVersion != null;
}
/**
* Method is deprecated. use withGoVersion instead.
*/
@java.lang.Deprecated
public A withNewGoVersion(java.lang.String arg0) {
return (A)withGoVersion(new String(arg0));
}
public java.lang.String getMajor() {
return this.major;
}
public A withMajor(java.lang.String major) {
this.major=major; return (A) this;
}
public java.lang.Boolean hasMajor() {
return this.major != null;
}
/**
* Method is deprecated. use withMajor instead.
*/
@java.lang.Deprecated
public A withNewMajor(java.lang.String arg0) {
return (A)withMajor(new String(arg0));
}
public java.lang.String getMinor() {
return this.minor;
}
public A withMinor(java.lang.String minor) {
this.minor=minor; return (A) this;
}
public java.lang.Boolean hasMinor() {
return this.minor != null;
}
/**
* Method is deprecated. use withMinor instead.
*/
@java.lang.Deprecated
public A withNewMinor(java.lang.String arg0) {
return (A)withMinor(new String(arg0));
}
public java.lang.String getPlatform() {
return this.platform;
}
public A withPlatform(java.lang.String platform) {
this.platform=platform; return (A) this;
}
public java.lang.Boolean hasPlatform() {
return this.platform != null;
}
/**
* Method is deprecated. use withPlatform instead.
*/
@java.lang.Deprecated
public A withNewPlatform(java.lang.String arg0) {
return (A)withPlatform(new String(arg0));
}
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;
InfoFluentImpl that = (InfoFluentImpl) 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 (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform, additionalProperties, super.hashCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy