io.dekorate.helm.config.MaintainerFluentImpl Maven / Gradle / Ivy
package io.dekorate.helm.config;
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 MaintainerFluentImpl> extends BaseFluent implements MaintainerFluent{
public MaintainerFluentImpl() {
}
public MaintainerFluentImpl(Maintainer instance) {
this.withName(instance.getName());
this.withEmail(instance.getEmail());
this.withUrl(instance.getUrl());
}
private String name;
private String email;
private String url;
public String getName() {
return this.name;
}
public A withName(String name) {
this.name=name; return (A) this;
}
public Boolean hasName() {
return this.name != null;
}
public String getEmail() {
return this.email;
}
public A withEmail(String email) {
this.email=email; return (A) this;
}
public Boolean hasEmail() {
return this.email != null;
}
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 equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MaintainerFluentImpl that = (MaintainerFluentImpl) o;
if (name != null ? !name.equals(that.name) :that.name != null) return false;
if (email != null ? !email.equals(that.email) :that.email != null) return false;
if (url != null ? !url.equals(that.url) :that.url != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(name, email, url, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (name != null) { sb.append("name:"); sb.append(name + ","); }
if (email != null) { sb.append("email:"); sb.append(email + ","); }
if (url != null) { sb.append("url:"); sb.append(url); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy