com.dell.cpsd.StoragePool Maven / Gradle / Ivy
package com.dell.cpsd;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
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({
"id",
"name",
"protectionDomainId",
"devices"
})
public class StoragePool implements Serializable
{
@JsonProperty("id")
private String id;
@JsonProperty("name")
private String name;
@JsonProperty("protectionDomainId")
private String protectionDomainId;
@JsonProperty("devices")
private List devices = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -908194050529470021L;
/**
* No args constructor for use in serialization
*
*/
public StoragePool() {
}
/**
*
* @param devices
* @param name
* @param id
* @param protectionDomainId
*/
public StoragePool(String id, String name, String protectionDomainId, List devices) {
super();
this.id = id;
this.name = name;
this.protectionDomainId = protectionDomainId;
this.devices = devices;
}
@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("protectionDomainId")
public String getProtectionDomainId() {
return protectionDomainId;
}
@JsonProperty("protectionDomainId")
public void setProtectionDomainId(String protectionDomainId) {
this.protectionDomainId = protectionDomainId;
}
@JsonProperty("devices")
public List getDevices() {
return devices;
}
@JsonProperty("devices")
public void setDevices(List devices) {
this.devices = devices;
}
@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(id).append(name).append(protectionDomainId).append(devices).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof StoragePool) == false) {
return false;
}
StoragePool rhs = ((StoragePool) other);
return new EqualsBuilder().append(id, rhs.id).append(name, rhs.name).append(protectionDomainId, rhs.protectionDomainId).append(devices, rhs.devices).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy