All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.kubernetes.api.model.VolumeSource Maven / Gradle / Ivy


package io.fabric8.kubernetes.api.model;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * 
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "emptyDir",
    "gitRepo",
    "glusterfs",
    "hostDir",
    "iscsi",
    "nfs",
    "persistentDisk",
    "secret"
})
public class VolumeSource {

    /**
     * 
     * 
     */
    @JsonProperty("emptyDir")
    @Valid
    private EmptyDirVolumeSource emptyDir;
    /**
     * 
     * 
     */
    @JsonProperty("gitRepo")
    @Valid
    private GitRepoVolumeSource gitRepo;
    /**
     * 
     * 
     */
    @JsonProperty("glusterfs")
    @Valid
    private GlusterfsVolumeSource glusterfs;
    /**
     * 
     * 
     */
    @JsonProperty("hostDir")
    @Valid
    private HostPathVolumeSource hostDir;
    /**
     * 
     * 
     */
    @JsonProperty("iscsi")
    @Valid
    private ISCSIVolumeSource iscsi;
    /**
     * 
     * 
     */
    @JsonProperty("nfs")
    @Valid
    private NFSVolumeSource nfs;
    /**
     * 
     * 
     */
    @JsonProperty("persistentDisk")
    @Valid
    private GCEPersistentDiskVolumeSource persistentDisk;
    /**
     * 
     * 
     */
    @JsonProperty("secret")
    @Valid
    private SecretVolumeSource secret;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * No args constructor for use in serialization
     * 
     */
    public VolumeSource() {
    }

    /**
     * 
     * @param iscsi
     * @param glusterfs
     * @param emptyDir
     * @param nfs
     * @param gitRepo
     * @param secret
     * @param hostDir
     * @param persistentDisk
     */
    public VolumeSource(EmptyDirVolumeSource emptyDir, GitRepoVolumeSource gitRepo, GlusterfsVolumeSource glusterfs, HostPathVolumeSource hostDir, ISCSIVolumeSource iscsi, NFSVolumeSource nfs, GCEPersistentDiskVolumeSource persistentDisk, SecretVolumeSource secret) {
        this.emptyDir = emptyDir;
        this.gitRepo = gitRepo;
        this.glusterfs = glusterfs;
        this.hostDir = hostDir;
        this.iscsi = iscsi;
        this.nfs = nfs;
        this.persistentDisk = persistentDisk;
        this.secret = secret;
    }

    /**
     * 
     * 
     * @return
     *     The emptyDir
     */
    @JsonProperty("emptyDir")
    public EmptyDirVolumeSource getEmptyDir() {
        return emptyDir;
    }

    /**
     * 
     * 
     * @param emptyDir
     *     The emptyDir
     */
    @JsonProperty("emptyDir")
    public void setEmptyDir(EmptyDirVolumeSource emptyDir) {
        this.emptyDir = emptyDir;
    }

    /**
     * 
     * 
     * @return
     *     The gitRepo
     */
    @JsonProperty("gitRepo")
    public GitRepoVolumeSource getGitRepo() {
        return gitRepo;
    }

    /**
     * 
     * 
     * @param gitRepo
     *     The gitRepo
     */
    @JsonProperty("gitRepo")
    public void setGitRepo(GitRepoVolumeSource gitRepo) {
        this.gitRepo = gitRepo;
    }

    /**
     * 
     * 
     * @return
     *     The glusterfs
     */
    @JsonProperty("glusterfs")
    public GlusterfsVolumeSource getGlusterfs() {
        return glusterfs;
    }

    /**
     * 
     * 
     * @param glusterfs
     *     The glusterfs
     */
    @JsonProperty("glusterfs")
    public void setGlusterfs(GlusterfsVolumeSource glusterfs) {
        this.glusterfs = glusterfs;
    }

    /**
     * 
     * 
     * @return
     *     The hostDir
     */
    @JsonProperty("hostDir")
    public HostPathVolumeSource getHostDir() {
        return hostDir;
    }

    /**
     * 
     * 
     * @param hostDir
     *     The hostDir
     */
    @JsonProperty("hostDir")
    public void setHostDir(HostPathVolumeSource hostDir) {
        this.hostDir = hostDir;
    }

    /**
     * 
     * 
     * @return
     *     The iscsi
     */
    @JsonProperty("iscsi")
    public ISCSIVolumeSource getIscsi() {
        return iscsi;
    }

    /**
     * 
     * 
     * @param iscsi
     *     The iscsi
     */
    @JsonProperty("iscsi")
    public void setIscsi(ISCSIVolumeSource iscsi) {
        this.iscsi = iscsi;
    }

    /**
     * 
     * 
     * @return
     *     The nfs
     */
    @JsonProperty("nfs")
    public NFSVolumeSource getNfs() {
        return nfs;
    }

    /**
     * 
     * 
     * @param nfs
     *     The nfs
     */
    @JsonProperty("nfs")
    public void setNfs(NFSVolumeSource nfs) {
        this.nfs = nfs;
    }

    /**
     * 
     * 
     * @return
     *     The persistentDisk
     */
    @JsonProperty("persistentDisk")
    public GCEPersistentDiskVolumeSource getPersistentDisk() {
        return persistentDisk;
    }

    /**
     * 
     * 
     * @param persistentDisk
     *     The persistentDisk
     */
    @JsonProperty("persistentDisk")
    public void setPersistentDisk(GCEPersistentDiskVolumeSource persistentDisk) {
        this.persistentDisk = persistentDisk;
    }

    /**
     * 
     * 
     * @return
     *     The secret
     */
    @JsonProperty("secret")
    public SecretVolumeSource getSecret() {
        return secret;
    }

    /**
     * 
     * 
     * @param secret
     *     The secret
     */
    @JsonProperty("secret")
    public void setSecret(SecretVolumeSource secret) {
        this.secret = secret;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(emptyDir).append(gitRepo).append(glusterfs).append(hostDir).append(iscsi).append(nfs).append(persistentDisk).append(secret).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof VolumeSource) == false) {
            return false;
        }
        VolumeSource rhs = ((VolumeSource) other);
        return new EqualsBuilder().append(emptyDir, rhs.emptyDir).append(gitRepo, rhs.gitRepo).append(glusterfs, rhs.glusterfs).append(hostDir, rhs.hostDir).append(iscsi, rhs.iscsi).append(nfs, rhs.nfs).append(persistentDisk, rhs.persistentDisk).append(secret, rhs.secret).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy