io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceFluentImpl 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;
import java.lang.Boolean;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class V1GitRepoVolumeSourceFluentImpl> extends BaseFluent implements V1GitRepoVolumeSourceFluent{
public V1GitRepoVolumeSourceFluentImpl() {
}
public V1GitRepoVolumeSourceFluentImpl(V1GitRepoVolumeSource instance) {
if (instance != null) {
this.withDirectory(instance.getDirectory());
this.withRepository(instance.getRepository());
this.withRevision(instance.getRevision());
}
}
private String directory;
private String repository;
private String revision;
public String getDirectory() {
return this.directory;
}
public A withDirectory(String directory) {
this.directory=directory; return (A) this;
}
public Boolean hasDirectory() {
return this.directory != null;
}
public String getRepository() {
return this.repository;
}
public A withRepository(String repository) {
this.repository=repository; return (A) this;
}
public Boolean hasRepository() {
return this.repository != null;
}
public String getRevision() {
return this.revision;
}
public A withRevision(String revision) {
this.revision=revision; return (A) this;
}
public Boolean hasRevision() {
return this.revision != 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;
V1GitRepoVolumeSourceFluentImpl that = (V1GitRepoVolumeSourceFluentImpl) o;
if (!java.util.Objects.equals(directory, that.directory)) return false;
if (!java.util.Objects.equals(repository, that.repository)) return false;
if (!java.util.Objects.equals(revision, that.revision)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(directory, repository, revision, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (directory != null) { sb.append("directory:"); sb.append(directory + ","); }
if (repository != null) { sb.append("repository:"); sb.append(repository + ","); }
if (revision != null) { sb.append("revision:"); sb.append(revision); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy