com.dell.cpsd.ScaleIODeviceDataRestRep Maven / Gradle / Ivy
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({
"storagePool",
"id",
"name",
"deviceCurrentPathName",
"storagePoolId",
"deviceState"
})
public class ScaleIODeviceDataRestRep implements Serializable
{
/**
*
* Corresponds to the "storagePool" property.
*
*/
@JsonProperty("storagePool")
private ScaleIOStoragePoolDataRestRep storagePool;
@JsonProperty("id")
private String id;
@JsonProperty("name")
private String name;
@JsonProperty("deviceCurrentPathName")
private String deviceCurrentPathName;
@JsonProperty("storagePoolId")
private String storagePoolId;
@JsonProperty("deviceState")
private String deviceState;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -4302371061268930896L;
/**
* No args constructor for use in serialization
*
*/
public ScaleIODeviceDataRestRep() {
}
/**
*
* @param name
* @param deviceCurrentPathName
* @param id
* @param storagePoolId
* @param deviceState
* @param storagePool
*/
public ScaleIODeviceDataRestRep(ScaleIOStoragePoolDataRestRep storagePool, String id, String name, String deviceCurrentPathName, String storagePoolId, String deviceState) {
super();
this.storagePool = storagePool;
this.id = id;
this.name = name;
this.deviceCurrentPathName = deviceCurrentPathName;
this.storagePoolId = storagePoolId;
this.deviceState = deviceState;
}
/**
*
* Corresponds to the "storagePool" property.
*
*/
@JsonProperty("storagePool")
public ScaleIOStoragePoolDataRestRep getScaleIOStoragePoolDataRestRep() {
return storagePool;
}
/**
*
* Corresponds to the "storagePool" property.
*
*/
@JsonProperty("storagePool")
public void setScaleIOStoragePoolDataRestRep(ScaleIOStoragePoolDataRestRep storagePool) {
this.storagePool = storagePool;
}
@JsonProperty("id")
public String getId() {
return id;
}
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
@JsonProperty("deviceCurrentPathName")
public String getDeviceCurrentPathName() {
return deviceCurrentPathName;
}
@JsonProperty("deviceCurrentPathName")
public void setDeviceCurrentPathName(String deviceCurrentPathName) {
this.deviceCurrentPathName = deviceCurrentPathName;
}
@JsonProperty("storagePoolId")
public String getStoragePoolId() {
return storagePoolId;
}
@JsonProperty("storagePoolId")
public void setStoragePoolId(String storagePoolId) {
this.storagePoolId = storagePoolId;
}
@JsonProperty("deviceState")
public String getDeviceState() {
return deviceState;
}
@JsonProperty("deviceState")
public void setDeviceState(String deviceState) {
this.deviceState = deviceState;
}
@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(storagePool).append(id).append(name).append(deviceCurrentPathName).append(storagePoolId).append(deviceState).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ScaleIODeviceDataRestRep) == false) {
return false;
}
ScaleIODeviceDataRestRep rhs = ((ScaleIODeviceDataRestRep) other);
return new EqualsBuilder().append(storagePool, rhs.storagePool).append(id, rhs.id).append(name, rhs.name).append(deviceCurrentPathName, rhs.deviceCurrentPathName).append(storagePoolId, rhs.storagePoolId).append(deviceState, rhs.deviceState).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy