com.dell.cpsd.ScaleIOComponentDetails Maven / Gradle / Ivy
The newest version!
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({
"componentUuid",
"location",
"elementType",
"endpoints"
})
public class ScaleIOComponentDetails implements Serializable
{
/**
*
* (Required)
*
*/
@JsonProperty("componentUuid")
private String componentUuid;
/**
*
* Corresponds to the "location" property.
*
*/
@JsonProperty("location")
private GeoLocation location;
/**
*
* (Required)
*
*/
@JsonProperty("elementType")
private String elementType;
/**
*
* (Required)
*
*/
@JsonProperty("endpoints")
private List endpoints = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -4983320356413868979L;
/**
* No args constructor for use in serialization
*
*/
public ScaleIOComponentDetails() {
}
/**
*
* @param endpoints
* @param location
* @param elementType
* @param componentUuid
*/
public ScaleIOComponentDetails(String componentUuid, GeoLocation location, String elementType, List endpoints) {
super();
this.componentUuid = componentUuid;
this.location = location;
this.elementType = elementType;
this.endpoints = endpoints;
}
/**
*
* (Required)
*
*/
@JsonProperty("componentUuid")
public String getComponentUuid() {
return componentUuid;
}
/**
*
* (Required)
*
*/
@JsonProperty("componentUuid")
public void setComponentUuid(String componentUuid) {
this.componentUuid = componentUuid;
}
/**
*
* Corresponds to the "location" property.
*
*/
@JsonProperty("location")
public GeoLocation getGeoLocation() {
return location;
}
/**
*
* Corresponds to the "location" property.
*
*/
@JsonProperty("location")
public void setGeoLocation(GeoLocation location) {
this.location = location;
}
/**
*
* (Required)
*
*/
@JsonProperty("elementType")
public String getElementType() {
return elementType;
}
/**
*
* (Required)
*
*/
@JsonProperty("elementType")
public void setElementType(String elementType) {
this.elementType = elementType;
}
/**
*
* (Required)
*
*/
@JsonProperty("endpoints")
public List getEndpoints() {
return endpoints;
}
/**
*
* (Required)
*
*/
@JsonProperty("endpoints")
public void setEndpoints(List endpoints) {
this.endpoints = endpoints;
}
@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(componentUuid).append(location).append(elementType).append(endpoints).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ScaleIOComponentDetails) == false) {
return false;
}
ScaleIOComponentDetails rhs = ((ScaleIOComponentDetails) other);
return new EqualsBuilder().append(componentUuid, rhs.componentUuid).append(location, rhs.location).append(elementType, rhs.elementType).append(endpoints, rhs.endpoints).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy