io.kubernetes.client.openapi.models.V1FlockerVolumeSourceFluent 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 V1FlockerVolumeSourceFluent> extends BaseFluent{
public V1FlockerVolumeSourceFluent() {
}
public V1FlockerVolumeSourceFluent(V1FlockerVolumeSource instance) {
this.copyInstance(instance);
}
private String datasetName;
private String datasetUUID;
protected void copyInstance(V1FlockerVolumeSource instance) {
instance = (instance != null ? instance : new V1FlockerVolumeSource());
if (instance != null) {
this.withDatasetName(instance.getDatasetName());
this.withDatasetUUID(instance.getDatasetUUID());
}
}
public String getDatasetName() {
return this.datasetName;
}
public A withDatasetName(String datasetName) {
this.datasetName = datasetName;
return (A) this;
}
public boolean hasDatasetName() {
return this.datasetName != null;
}
public String getDatasetUUID() {
return this.datasetUUID;
}
public A withDatasetUUID(String datasetUUID) {
this.datasetUUID = datasetUUID;
return (A) this;
}
public boolean hasDatasetUUID() {
return this.datasetUUID != 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;
V1FlockerVolumeSourceFluent that = (V1FlockerVolumeSourceFluent) o;
if (!java.util.Objects.equals(datasetName, that.datasetName)) return false;
if (!java.util.Objects.equals(datasetUUID, that.datasetUUID)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(datasetName, datasetUUID, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (datasetName != null) { sb.append("datasetName:"); sb.append(datasetName + ","); }
if (datasetUUID != null) { sb.append("datasetUUID:"); sb.append(datasetUUID); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy