com.dell.cpsd.rcm.evaluation.service.api.ElementVersionDatum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rcm-evaluation-service-api Show documentation
Show all versions of rcm-evaluation-service-api Show documentation
This repository contains the source code for the rcm evaluation service API.
Use this repository to share contracts between services so you can create POJOs using defined JSON schemas and to create message transformers for the RCM evaluation service.
The newest version!
package com.dell.cpsd.rcm.evaluation.service.api;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
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.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"componentUuid",
"parentUuid",
"identity",
"definition",
"collectedTime",
"groups",
"versions"
})
public class ElementVersionDatum implements Serializable
{
@JsonProperty("componentUuid")
private String componentUuid;
@JsonProperty("parentUuid")
private String parentUuid;
/**
*
*/
@JsonProperty("identity")
private ElementIdentity identity;
@JsonProperty("definition")
private ElementDefinition definition;
@JsonProperty("collectedTime")
private Date collectedTime;
@JsonProperty("groups")
private List groups = new ArrayList();
@JsonProperty("versions")
private List versions = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 334026455675158303L;
/**
* No args constructor for use in serialization
*
*/
public ElementVersionDatum() {
}
/**
*
* @param collectedTime
* @param versions
* @param identity
* @param groups
* @param definition
* @param componentUuid
* @param parentUuid
*/
public ElementVersionDatum(String componentUuid, String parentUuid, ElementIdentity identity, ElementDefinition definition, Date collectedTime, List groups, List versions) {
super();
this.componentUuid = componentUuid;
this.parentUuid = parentUuid;
this.identity = identity;
this.definition = definition;
this.collectedTime = collectedTime;
this.groups = groups;
this.versions = versions;
}
/**
*
* @return
* The componentUuid
*/
@JsonProperty("componentUuid")
public String getComponentUuid() {
return componentUuid;
}
/**
*
* @param componentUuid
* The componentUuid
*/
@JsonProperty("componentUuid")
public void setComponentUuid(String componentUuid) {
this.componentUuid = componentUuid;
}
/**
*
* @return
* The parentUuid
*/
@JsonProperty("parentUuid")
public String getParentUuid() {
return parentUuid;
}
/**
*
* @param parentUuid
* The parentUuid
*/
@JsonProperty("parentUuid")
public void setParentUuid(String parentUuid) {
this.parentUuid = parentUuid;
}
/**
*
* @return
* The identity
*/
@JsonProperty("identity")
public ElementIdentity getIdentity() {
return identity;
}
/**
*
* @param identity
* The identity
*/
@JsonProperty("identity")
public void setIdentity(ElementIdentity identity) {
this.identity = identity;
}
/**
*
* @return
* The definition
*/
@JsonProperty("definition")
public ElementDefinition getDefinition() {
return definition;
}
/**
*
* @param definition
* The definition
*/
@JsonProperty("definition")
public void setDefinition(ElementDefinition definition) {
this.definition = definition;
}
/**
*
* @return
* The collectedTime
*/
@JsonProperty("collectedTime")
public Date getCollectedTime() {
return collectedTime;
}
/**
*
* @param collectedTime
* The collectedTime
*/
@JsonProperty("collectedTime")
public void setCollectedTime(Date collectedTime) {
this.collectedTime = collectedTime;
}
/**
*
* @return
* The groups
*/
@JsonProperty("groups")
public List getGroups() {
return groups;
}
/**
*
* @param groups
* The groups
*/
@JsonProperty("groups")
public void setGroups(List groups) {
this.groups = groups;
}
/**
*
* @return
* The versions
*/
@JsonProperty("versions")
public List getVersions() {
return versions;
}
/**
*
* @param versions
* The versions
*/
@JsonProperty("versions")
public void setVersions(List versions) {
this.versions = versions;
}
@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(parentUuid).append(identity).append(definition).append(collectedTime).append(groups).append(versions).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ElementVersionDatum) == false) {
return false;
}
ElementVersionDatum rhs = ((ElementVersionDatum) other);
return new EqualsBuilder().append(componentUuid, rhs.componentUuid).append(parentUuid, rhs.parentUuid).append(identity, rhs.identity).append(definition, rhs.definition).append(collectedTime, rhs.collectedTime).append(groups, rhs.groups).append(versions, rhs.versions).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}