io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1AzureFileVolumeSourceBuilder extends V1AzureFileVolumeSourceFluentImpl implements VisitableBuilder {
V1AzureFileVolumeSourceFluent> fluent;
Boolean validationEnabled;
public V1AzureFileVolumeSourceBuilder() {
this(true);
}
public V1AzureFileVolumeSourceBuilder(Boolean validationEnabled) {
this(new V1AzureFileVolumeSource(), validationEnabled);
}
public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent> fluent) {
this(fluent, true);
}
public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1AzureFileVolumeSource(), validationEnabled);
}
public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent> fluent,V1AzureFileVolumeSource instance) {
this(fluent, instance, true);
}
public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent> fluent,V1AzureFileVolumeSource instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withReadOnly(instance.getReadOnly());
fluent.withSecretName(instance.getSecretName());
fluent.withShareName(instance.getShareName());
this.validationEnabled = validationEnabled;
}
public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSource instance) {
this(instance,true);
}
public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSource instance,Boolean validationEnabled) {
this.fluent = this;
this.withReadOnly(instance.getReadOnly());
this.withSecretName(instance.getSecretName());
this.withShareName(instance.getShareName());
this.validationEnabled = validationEnabled;
}
public V1AzureFileVolumeSource build() {
V1AzureFileVolumeSource buildable = new V1AzureFileVolumeSource();
buildable.setReadOnly(fluent.isReadOnly());
buildable.setSecretName(fluent.getSecretName());
buildable.setShareName(fluent.getShareName());
return buildable;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1AzureFileVolumeSourceBuilder that = (V1AzureFileVolumeSourceBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}