com.dell.cpsd.rcm.evaluation.service.api.RcmEvaluationErrorMessage 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.Date;
import java.util.HashMap;
import java.util.Map;
import com.dell.cpsd.common.rabbitmq.annotation.Message;
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;
/**
*
*
* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
* Dell EMC Confidential/Proprietary Information
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Message(value = "com.dell.cpsd.rfes.rcm.evaluation.service.error", version = "1.0")
@JsonPropertyOrder({
"timestamp",
"correlationId",
"hostname",
"errorCode",
"errorMessage"
})
public class RcmEvaluationErrorMessage implements Serializable
{
/**
*
* (Required)
*
*/
@JsonProperty("timestamp")
private Date timestamp;
/**
*
* (Required)
*
*/
@JsonProperty("correlationId")
private String correlationId;
/**
*
* (Required)
*
*/
@JsonProperty("hostname")
private String hostname;
/**
*
* (Required)
*
*/
@JsonProperty("errorCode")
private String errorCode;
/**
*
* (Required)
*
*/
@JsonProperty("errorMessage")
private String errorMessage;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 5139321506561309395L;
/**
* No args constructor for use in serialization
*
*/
public RcmEvaluationErrorMessage() {
}
/**
*
* @param hostname
* @param errorMessage
* @param errorCode
* @param correlationId
* @param timestamp
*/
public RcmEvaluationErrorMessage(Date timestamp, String correlationId, String hostname, String errorCode, String errorMessage) {
super();
this.timestamp = timestamp;
this.correlationId = correlationId;
this.hostname = hostname;
this.errorCode = errorCode;
this.errorMessage = errorMessage;
}
/**
*
* (Required)
*
* @return
* The timestamp
*/
@JsonProperty("timestamp")
public Date getTimestamp() {
return timestamp;
}
/**
*
* (Required)
*
* @param timestamp
* The timestamp
*/
@JsonProperty("timestamp")
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
/**
*
* (Required)
*
* @return
* The correlationId
*/
@JsonProperty("correlationId")
public String getCorrelationId() {
return correlationId;
}
/**
*
* (Required)
*
* @param correlationId
* The correlationId
*/
@JsonProperty("correlationId")
public void setCorrelationId(String correlationId) {
this.correlationId = correlationId;
}
/**
*
* (Required)
*
* @return
* The hostname
*/
@JsonProperty("hostname")
public String getHostname() {
return hostname;
}
/**
*
* (Required)
*
* @param hostname
* The hostname
*/
@JsonProperty("hostname")
public void setHostname(String hostname) {
this.hostname = hostname;
}
/**
*
* (Required)
*
* @return
* The errorCode
*/
@JsonProperty("errorCode")
public String getErrorCode() {
return errorCode;
}
/**
*
* (Required)
*
* @param errorCode
* The errorCode
*/
@JsonProperty("errorCode")
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
/**
*
* (Required)
*
* @return
* The errorMessage
*/
@JsonProperty("errorMessage")
public String getErrorMessage() {
return errorMessage;
}
/**
*
* (Required)
*
* @param errorMessage
* The errorMessage
*/
@JsonProperty("errorMessage")
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
@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(timestamp).append(correlationId).append(hostname).append(errorCode).append(errorMessage).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof RcmEvaluationErrorMessage) == false) {
return false;
}
RcmEvaluationErrorMessage rhs = ((RcmEvaluationErrorMessage) other);
return new EqualsBuilder().append(timestamp, rhs.timestamp).append(correlationId, rhs.correlationId).append(hostname, rhs.hostname).append(errorCode, rhs.errorCode).append(errorMessage, rhs.errorMessage).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}