io.strimzi.api.kafka.model.connect.build.MavenArtifactFluent Maven / Gradle / Ivy
package io.strimzi.api.kafka.model.connect.build;
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("unchecked")
public class MavenArtifactFluent> extends BaseFluent{
public MavenArtifactFluent() {
}
public MavenArtifactFluent(MavenArtifact instance) {
this.copyInstance(instance);
}
private String group;
private String artifact;
private String version;
private String repository;
private Boolean insecure;
protected void copyInstance(MavenArtifact instance) {
instance = (instance != null ? instance : new MavenArtifact());
if (instance != null) {
this.withGroup(instance.getGroup());
this.withArtifact(instance.getArtifact());
this.withVersion(instance.getVersion());
this.withRepository(instance.getRepository());
this.withInsecure(instance.getInsecure());
}
}
public String getGroup() {
return this.group;
}
public A withGroup(String group) {
this.group = group;
return (A) this;
}
public boolean hasGroup() {
return this.group != null;
}
public String getArtifact() {
return this.artifact;
}
public A withArtifact(String artifact) {
this.artifact = artifact;
return (A) this;
}
public boolean hasArtifact() {
return this.artifact != null;
}
public String getVersion() {
return this.version;
}
public A withVersion(String version) {
this.version = version;
return (A) this;
}
public boolean hasVersion() {
return this.version != null;
}
public String getRepository() {
return this.repository;
}
public A withRepository(String repository) {
this.repository = repository;
return (A) this;
}
public boolean hasRepository() {
return this.repository != null;
}
public Boolean getInsecure() {
return this.insecure;
}
public A withInsecure(Boolean insecure) {
this.insecure = insecure;
return (A) this;
}
public boolean hasInsecure() {
return this.insecure != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
MavenArtifactFluent that = (MavenArtifactFluent) o;
if (!java.util.Objects.equals(group, that.group)) return false;
if (!java.util.Objects.equals(artifact, that.artifact)) return false;
if (!java.util.Objects.equals(version, that.version)) return false;
if (!java.util.Objects.equals(repository, that.repository)) return false;
if (!java.util.Objects.equals(insecure, that.insecure)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(group, artifact, version, repository, insecure, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (group != null) { sb.append("group:"); sb.append(group + ","); }
if (artifact != null) { sb.append("artifact:"); sb.append(artifact + ","); }
if (version != null) { sb.append("version:"); sb.append(version + ","); }
if (repository != null) { sb.append("repository:"); sb.append(repository + ","); }
if (insecure != null) { sb.append("insecure:"); sb.append(insecure); }
sb.append("}");
return sb.toString();
}
public A withInsecure() {
return withInsecure(true);
}
}