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

com.dell.cpsd.rcm.evaluation.service.api.EvaluatedVersionDatum Maven / Gradle / Ivy

Go to download

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",
    "deviceUuid",
    "identity",
    "definition",
    "collectedTime",
    "versions",
    "groups"
})
public class EvaluatedVersionDatum implements Serializable
{

    @JsonProperty("componentUuid")
    private String componentUuid;
    @JsonProperty("deviceUuid")
    private String deviceUuid;
    /**
     * 
     */
    @JsonProperty("identity")
    private ElementIdentity identity;
    @JsonProperty("definition")
    private ElementDefinition definition;
    @JsonProperty("collectedTime")
    private Date collectedTime;
    @JsonProperty("versions")
    private List versions = new ArrayList();
    @JsonProperty("groups")
    private List groups = new ArrayList();
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = -5895387962883190369L;

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

    /**
     * 
     * @param deviceUuid
     * @param collectedTime
     * @param versions
     * @param identity
     * @param groups
     * @param definition
     * @param componentUuid
     */
    public EvaluatedVersionDatum(String componentUuid, String deviceUuid, ElementIdentity identity, ElementDefinition definition, Date collectedTime, List versions, List groups) {
        super();
        this.componentUuid = componentUuid;
        this.deviceUuid = deviceUuid;
        this.identity = identity;
        this.definition = definition;
        this.collectedTime = collectedTime;
        this.versions = versions;
        this.groups = groups;
    }

    /**
     * 
     * @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 deviceUuid
     */
    @JsonProperty("deviceUuid")
    public String getDeviceUuid() {
        return deviceUuid;
    }

    /**
     * 
     * @param deviceUuid
     *     The deviceUuid
     */
    @JsonProperty("deviceUuid")
    public void setDeviceUuid(String deviceUuid) {
        this.deviceUuid = deviceUuid;
    }

    /**
     * 
     * @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 versions
     */
    @JsonProperty("versions")
    public List getVersions() {
        return versions;
    }

    /**
     * 
     * @param versions
     *     The versions
     */
    @JsonProperty("versions")
    public void setVersions(List versions) {
        this.versions = versions;
    }

    /**
     * 
     * @return
     *     The groups
     */
    @JsonProperty("groups")
    public List getGroups() {
        return groups;
    }

    /**
     * 
     * @param groups
     *     The groups
     */
    @JsonProperty("groups")
    public void setGroups(List groups) {
        this.groups = groups;
    }

    @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(deviceUuid).append(identity).append(definition).append(collectedTime).append(versions).append(groups).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof EvaluatedVersionDatum) == false) {
            return false;
        }
        EvaluatedVersionDatum rhs = ((EvaluatedVersionDatum) other);
        return new EqualsBuilder().append(componentUuid, rhs.componentUuid).append(deviceUuid, rhs.deviceUuid).append(identity, rhs.identity).append(definition, rhs.definition).append(collectedTime, rhs.collectedTime).append(versions, rhs.versions).append(groups, rhs.groups).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy