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

com.dell.cpsd.rcm.evaluation.service.api.RcmEvaluationResult 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.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({
    "elementUuid",
    "evaluationMessage",
    "actualValue",
    "expectedValues",
    "evaluationResult",
    "evaluatedRcmDatum",
    "evaluatedVersionDatum"
})
public class RcmEvaluationResult implements Serializable
{

    @JsonProperty("elementUuid")
    private String elementUuid;
    @JsonProperty("evaluationMessage")
    private String evaluationMessage;
    @JsonProperty("actualValue")
    private String actualValue;
    @JsonProperty("expectedValues")
    private List expectedValues = new ArrayList();
    @JsonProperty("evaluationResult")
    private String evaluationResult;
    /**
     * 
     * Corresponds to the "evaluatedRcmDatum" property.
     * 
     */
    @JsonProperty("evaluatedRcmDatum")
    private EvaluatedRcmRowDatum evaluatedRcmRowDatum;
    /**
     * 
     * Corresponds to the "evaluatedVersionDatum" property.
     * 
     */
    @JsonProperty("evaluatedVersionDatum")
    private EvaluatedVersionDatum evaluatedVersionDatum;
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = 5544842848085314476L;

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

    /**
     * 
     * @param evaluationMessage
     * @param evaluatedRcmRowDatum
     * @param actualValue
     * @param evaluationResult
     * @param evaluatedVersionDatum
     * @param elementUuid
     * @param expectedValues
     */
    public RcmEvaluationResult(String elementUuid, String evaluationMessage, String actualValue, List expectedValues, String evaluationResult, EvaluatedRcmRowDatum evaluatedRcmRowDatum, EvaluatedVersionDatum evaluatedVersionDatum) {
        super();
        this.elementUuid = elementUuid;
        this.evaluationMessage = evaluationMessage;
        this.actualValue = actualValue;
        this.expectedValues = expectedValues;
        this.evaluationResult = evaluationResult;
        this.evaluatedRcmRowDatum = evaluatedRcmRowDatum;
        this.evaluatedVersionDatum = evaluatedVersionDatum;
    }

    /**
     * 
     * @return
     *     The elementUuid
     */
    @JsonProperty("elementUuid")
    public String getElementUuid() {
        return elementUuid;
    }

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

    /**
     * 
     * @return
     *     The evaluationMessage
     */
    @JsonProperty("evaluationMessage")
    public String getEvaluationMessage() {
        return evaluationMessage;
    }

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

    /**
     * 
     * @return
     *     The actualValue
     */
    @JsonProperty("actualValue")
    public String getActualValue() {
        return actualValue;
    }

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

    /**
     * 
     * @return
     *     The expectedValues
     */
    @JsonProperty("expectedValues")
    public List getExpectedValues() {
        return expectedValues;
    }

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

    /**
     * 
     * @return
     *     The evaluationResult
     */
    @JsonProperty("evaluationResult")
    public String getEvaluationResult() {
        return evaluationResult;
    }

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

    /**
     * 
     * Corresponds to the "evaluatedRcmDatum" property.
     * 
     * @return
     *     The evaluatedRcmRowDatum
     */
    @JsonProperty("evaluatedRcmDatum")
    public EvaluatedRcmRowDatum getEvaluatedRcmRowDatum() {
        return evaluatedRcmRowDatum;
    }

    /**
     * 
     * Corresponds to the "evaluatedRcmDatum" property.
     * 
     * @param evaluatedRcmRowDatum
     *     The evaluatedRcmDatum
     */
    @JsonProperty("evaluatedRcmDatum")
    public void setEvaluatedRcmRowDatum(EvaluatedRcmRowDatum evaluatedRcmRowDatum) {
        this.evaluatedRcmRowDatum = evaluatedRcmRowDatum;
    }

    /**
     * 
     * Corresponds to the "evaluatedVersionDatum" property.
     * 
     * @return
     *     The evaluatedVersionDatum
     */
    @JsonProperty("evaluatedVersionDatum")
    public EvaluatedVersionDatum getEvaluatedVersionDatum() {
        return evaluatedVersionDatum;
    }

    /**
     * 
     * Corresponds to the "evaluatedVersionDatum" property.
     * 
     * @param evaluatedVersionDatum
     *     The evaluatedVersionDatum
     */
    @JsonProperty("evaluatedVersionDatum")
    public void setEvaluatedVersionDatum(EvaluatedVersionDatum evaluatedVersionDatum) {
        this.evaluatedVersionDatum = evaluatedVersionDatum;
    }

    @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(elementUuid).append(evaluationMessage).append(actualValue).append(expectedValues).append(evaluationResult).append(evaluatedRcmRowDatum).append(evaluatedVersionDatum).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof RcmEvaluationResult) == false) {
            return false;
        }
        RcmEvaluationResult rhs = ((RcmEvaluationResult) other);
        return new EqualsBuilder().append(elementUuid, rhs.elementUuid).append(evaluationMessage, rhs.evaluationMessage).append(actualValue, rhs.actualValue).append(expectedValues, rhs.expectedValues).append(evaluationResult, rhs.evaluationResult).append(evaluatedRcmRowDatum, rhs.evaluatedRcmRowDatum).append(evaluatedVersionDatum, rhs.evaluatedVersionDatum).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy