io.dekorate.helm.config.AnnotationFluentImpl 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 AnnotationFluentImpl> extends BaseFluent implements AnnotationFluent{
public AnnotationFluentImpl() {
}
public AnnotationFluentImpl(Annotation instance) {
this.withKey(instance.getKey());
this.withValue(instance.getValue());
}
private String key;
private String value;
public String getKey() {
return this.key;
}
public A withKey(String key) {
this.key=key; return (A) this;
}
public Boolean hasKey() {
return this.key != null;
}
public String getValue() {
return this.value;
}
public A withValue(String value) {
this.value=value; return (A) this;
}
public Boolean hasValue() {
return this.value != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AnnotationFluentImpl that = (AnnotationFluentImpl) o;
if (key != null ? !key.equals(that.key) :that.key != null) return false;
if (value != null ? !value.equals(that.value) :that.value != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(key, value, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (key != null) { sb.append("key:"); sb.append(key + ","); }
if (value != null) { sb.append("value:"); sb.append(value); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy