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

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

The newest version!

package io.fabric8.kubernetes.api.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
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({
    "fsType",
    "image",
    "keyring",
    "monitors",
    "pool",
    "readOnly",
    "secretRef",
    "user"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class RBDVolumeSource {

    /**
     * file system type to mount
     * 
     */
    @JsonProperty("fsType")
    private String fsType;
    /**
     * rados image name
     * 
     */
    @JsonProperty("image")
    private String image;
    /**
     * keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional
     * 
     */
    @JsonProperty("keyring")
    private String keyring;
    /**
     * a collection of Ceph monitors
     * 
     */
    @JsonProperty("monitors")
    @Valid
    private List monitors = new ArrayList();
    /**
     * rados pool name; default is rbd; optional
     * 
     */
    @JsonProperty("pool")
    private String pool;
    /**
     * rbd volume to be mounted with read-only permissions
     * 
     */
    @JsonProperty("readOnly")
    private Boolean readOnly;
    /**
     * 
     * 
     */
    @JsonProperty("secretRef")
    @Valid
    private LocalObjectReference secretRef;
    /**
     * rados user name; default is admin; optional
     * 
     */
    @JsonProperty("user")
    private String user;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

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

    /**
     * 
     * @param fsType
     * @param readOnly
     * @param monitors
     * @param pool
     * @param image
     * @param secretRef
     * @param keyring
     * @param user
     */
    public RBDVolumeSource(String fsType, String image, String keyring, List monitors, String pool, Boolean readOnly, LocalObjectReference secretRef, String user) {
        this.fsType = fsType;
        this.image = image;
        this.keyring = keyring;
        this.monitors = monitors;
        this.pool = pool;
        this.readOnly = readOnly;
        this.secretRef = secretRef;
        this.user = user;
    }

    /**
     * file system type to mount
     * 
     * @return
     *     The fsType
     */
    @JsonProperty("fsType")
    public String getFsType() {
        return fsType;
    }

    /**
     * file system type to mount
     * 
     * @param fsType
     *     The fsType
     */
    @JsonProperty("fsType")
    public void setFsType(String fsType) {
        this.fsType = fsType;
    }

    /**
     * rados image name
     * 
     * @return
     *     The image
     */
    @JsonProperty("image")
    public String getImage() {
        return image;
    }

    /**
     * rados image name
     * 
     * @param image
     *     The image
     */
    @JsonProperty("image")
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional
     * 
     * @return
     *     The keyring
     */
    @JsonProperty("keyring")
    public String getKeyring() {
        return keyring;
    }

    /**
     * keyring is the path to key ring for rados user; default is /etc/ceph/keyring; optional
     * 
     * @param keyring
     *     The keyring
     */
    @JsonProperty("keyring")
    public void setKeyring(String keyring) {
        this.keyring = keyring;
    }

    /**
     * a collection of Ceph monitors
     * 
     * @return
     *     The monitors
     */
    @JsonProperty("monitors")
    public List getMonitors() {
        return monitors;
    }

    /**
     * a collection of Ceph monitors
     * 
     * @param monitors
     *     The monitors
     */
    @JsonProperty("monitors")
    public void setMonitors(List monitors) {
        this.monitors = monitors;
    }

    /**
     * rados pool name; default is rbd; optional
     * 
     * @return
     *     The pool
     */
    @JsonProperty("pool")
    public String getPool() {
        return pool;
    }

    /**
     * rados pool name; default is rbd; optional
     * 
     * @param pool
     *     The pool
     */
    @JsonProperty("pool")
    public void setPool(String pool) {
        this.pool = pool;
    }

    /**
     * rbd volume to be mounted with read-only permissions
     * 
     * @return
     *     The readOnly
     */
    @JsonProperty("readOnly")
    public Boolean getReadOnly() {
        return readOnly;
    }

    /**
     * rbd volume to be mounted with read-only permissions
     * 
     * @param readOnly
     *     The readOnly
     */
    @JsonProperty("readOnly")
    public void setReadOnly(Boolean readOnly) {
        this.readOnly = readOnly;
    }

    /**
     * 
     * 
     * @return
     *     The secretRef
     */
    @JsonProperty("secretRef")
    public LocalObjectReference getSecretRef() {
        return secretRef;
    }

    /**
     * 
     * 
     * @param secretRef
     *     The secretRef
     */
    @JsonProperty("secretRef")
    public void setSecretRef(LocalObjectReference secretRef) {
        this.secretRef = secretRef;
    }

    /**
     * rados user name; default is admin; optional
     * 
     * @return
     *     The user
     */
    @JsonProperty("user")
    public String getUser() {
        return user;
    }

    /**
     * rados user name; default is admin; optional
     * 
     * @param user
     *     The user
     */
    @JsonProperty("user")
    public void setUser(String user) {
        this.user = user;
    }

    @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(fsType).append(image).append(keyring).append(monitors).append(pool).append(readOnly).append(secretRef).append(user).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof RBDVolumeSource) == false) {
            return false;
        }
        RBDVolumeSource rhs = ((RBDVolumeSource) other);
        return new EqualsBuilder().append(fsType, rhs.fsType).append(image, rhs.image).append(keyring, rhs.keyring).append(monitors, rhs.monitors).append(pool, rhs.pool).append(readOnly, rhs.readOnly).append(secretRef, rhs.secretRef).append(user, rhs.user).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy