io.github.microcks.operator.api.artifact.v1alpha1.ArtifactSpecFluent Maven / Gradle / Ivy
package io.github.microcks.operator.api.artifact.v1alpha1;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class ArtifactSpecFluent> extends BaseFluent{
public ArtifactSpecFluent() {
}
public ArtifactSpecFluent(ArtifactSpec instance) {
this.copyInstance(instance);
}
private String url;
private boolean mainArtifact;
private String secretRef;
protected void copyInstance(ArtifactSpec instance) {
instance = (instance != null ? instance : new ArtifactSpec());
if (instance != null) {
this.withUrl(instance.getUrl());
this.withMainArtifact(instance.getMainArtifact());
this.withSecretRef(instance.getSecretRef());
}
}
public String getUrl() {
return this.url;
}
public A withUrl(String url) {
this.url = url;
return (A) this;
}
public boolean hasUrl() {
return this.url != null;
}
public boolean isMainArtifact() {
return this.mainArtifact;
}
public A withMainArtifact(boolean mainArtifact) {
this.mainArtifact = mainArtifact;
return (A) this;
}
public boolean hasMainArtifact() {
return true;
}
public String getSecretRef() {
return this.secretRef;
}
public A withSecretRef(String secretRef) {
this.secretRef = secretRef;
return (A) this;
}
public boolean hasSecretRef() {
return this.secretRef != 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;
ArtifactSpecFluent that = (ArtifactSpecFluent) o;
if (!java.util.Objects.equals(url, that.url)) return false;
if (mainArtifact != that.mainArtifact) return false;
if (!java.util.Objects.equals(secretRef, that.secretRef)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(url, mainArtifact, secretRef, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (url != null) { sb.append("url:"); sb.append(url + ","); }
sb.append("mainArtifact:"); sb.append(mainArtifact + ",");
if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); }
sb.append("}");
return sb.toString();
}
public A withMainArtifact() {
return withMainArtifact(true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy