com.dell.cpsd.rcm.evaluation.service.api.ElementDefinition 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.HashMap;
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({
"productFamily",
"product",
"modelFamily",
"model"
})
public class ElementDefinition implements Serializable
{
@JsonProperty("productFamily")
private String productFamily;
@JsonProperty("product")
private String product;
@JsonProperty("modelFamily")
private String modelFamily;
@JsonProperty("model")
private String model;
@JsonIgnore
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -7630724558810941484L;
/**
* No args constructor for use in serialization
*
*/
public ElementDefinition() {
}
/**
*
* @param productFamily
* @param product
* @param modelFamily
* @param model
*/
public ElementDefinition(String productFamily, String product, String modelFamily, String model) {
super();
this.productFamily = productFamily;
this.product = product;
this.modelFamily = modelFamily;
this.model = model;
}
/**
*
* @return
* The productFamily
*/
@JsonProperty("productFamily")
public String getProductFamily() {
return productFamily;
}
/**
*
* @param productFamily
* The productFamily
*/
@JsonProperty("productFamily")
public void setProductFamily(String productFamily) {
this.productFamily = productFamily;
}
/**
*
* @return
* The product
*/
@JsonProperty("product")
public String getProduct() {
return product;
}
/**
*
* @param product
* The product
*/
@JsonProperty("product")
public void setProduct(String product) {
this.product = product;
}
/**
*
* @return
* The modelFamily
*/
@JsonProperty("modelFamily")
public String getModelFamily() {
return modelFamily;
}
/**
*
* @param modelFamily
* The modelFamily
*/
@JsonProperty("modelFamily")
public void setModelFamily(String modelFamily) {
this.modelFamily = modelFamily;
}
/**
*
* @return
* The model
*/
@JsonProperty("model")
public String getModel() {
return model;
}
/**
*
* @param model
* The model
*/
@JsonProperty("model")
public void setModel(String model) {
this.model = model;
}
@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(productFamily).append(product).append(modelFamily).append(model).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ElementDefinition) == false) {
return false;
}
ElementDefinition rhs = ((ElementDefinition) other);
return new EqualsBuilder().append(productFamily, rhs.productFamily).append(product, rhs.product).append(modelFamily, rhs.modelFamily).append(model, rhs.model).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}