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

com.dell.cpsd.InstallationManagerStorageDevice Maven / Gradle / Ivy

The newest version!

package com.dell.cpsd;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
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.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "devicePath",
    "storagePool",
    "deviceName"
})
public class InstallationManagerStorageDevice implements Serializable
{

    @JsonProperty("devicePath")
    private String devicePath;
    @JsonProperty("storagePool")
    private String storagePool;
    @JsonProperty("deviceName")
    private String deviceName;
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = -4934461574268711728L;

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

    /**
     * 
     * @param devicePath
     * @param storagePool
     * @param deviceName
     */
    public InstallationManagerStorageDevice(String devicePath, String storagePool, String deviceName) {
        super();
        this.devicePath = devicePath;
        this.storagePool = storagePool;
        this.deviceName = deviceName;
    }

    @JsonProperty("devicePath")
    public String getDevicePath() {
        return devicePath;
    }

    @JsonProperty("devicePath")
    public void setDevicePath(String devicePath) {
        this.devicePath = devicePath;
    }

    @JsonProperty("storagePool")
    public String getStoragePool() {
        return storagePool;
    }

    @JsonProperty("storagePool")
    public void setStoragePool(String storagePool) {
        this.storagePool = storagePool;
    }

    @JsonProperty("deviceName")
    public String getDeviceName() {
        return deviceName;
    }

    @JsonProperty("deviceName")
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    @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(devicePath).append(storagePool).append(deviceName).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof InstallationManagerStorageDevice) == false) {
            return false;
        }
        InstallationManagerStorageDevice rhs = ((InstallationManagerStorageDevice) other);
        return new EqualsBuilder().append(devicePath, rhs.devicePath).append(storagePool, rhs.storagePool).append(deviceName, rhs.deviceName).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy