io.kubernetes.client.openapi.models.V1ImageVolumeSourceFluent Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class V1ImageVolumeSourceFluent> extends BaseFluent{
public V1ImageVolumeSourceFluent() {
}
public V1ImageVolumeSourceFluent(V1ImageVolumeSource instance) {
this.copyInstance(instance);
}
private String pullPolicy;
private String reference;
protected void copyInstance(V1ImageVolumeSource instance) {
instance = (instance != null ? instance : new V1ImageVolumeSource());
if (instance != null) {
this.withPullPolicy(instance.getPullPolicy());
this.withReference(instance.getReference());
}
}
public String getPullPolicy() {
return this.pullPolicy;
}
public A withPullPolicy(String pullPolicy) {
this.pullPolicy = pullPolicy;
return (A) this;
}
public boolean hasPullPolicy() {
return this.pullPolicy != null;
}
public String getReference() {
return this.reference;
}
public A withReference(String reference) {
this.reference = reference;
return (A) this;
}
public boolean hasReference() {
return this.reference != 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;
V1ImageVolumeSourceFluent that = (V1ImageVolumeSourceFluent) o;
if (!java.util.Objects.equals(pullPolicy, that.pullPolicy)) return false;
if (!java.util.Objects.equals(reference, that.reference)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(pullPolicy, reference, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (pullPolicy != null) { sb.append("pullPolicy:"); sb.append(pullPolicy + ","); }
if (reference != null) { sb.append("reference:"); sb.append(reference); }
sb.append("}");
return sb.toString();
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy