io.fabric8.knative.sources.v1.APIVersionKindFluentImpl Maven / Gradle / Ivy
package io.fabric8.knative.sources.v1;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class APIVersionKindFluentImpl> extends BaseFluent implements APIVersionKindFluent{
public APIVersionKindFluentImpl() {
}
public APIVersionKindFluentImpl(io.fabric8.knative.sources.v1.APIVersionKind instance) {
this.withApiVersion(instance.getApiVersion());
this.withKind(instance.getKind());
}
private String apiVersion;
private java.lang.String kind;
public java.lang.String getApiVersion() {
return this.apiVersion;
}
public A withApiVersion(java.lang.String apiVersion) {
this.apiVersion=apiVersion; return (A) this;
}
public Boolean hasApiVersion() {
return this.apiVersion != null;
}
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;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
APIVersionKindFluentImpl that = (APIVersionKindFluentImpl) 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;
return true;
}
public int hashCode() {
return java.util.Objects.hash(apiVersion, kind, super.hashCode());
}
public java.lang.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); }
sb.append("}");
return sb.toString();
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy