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

com.dell.cpsd.rcm.evaluation.service.api.SystemIdentity 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({
    "uuid",
    "productFamily",
    "product",
    "modelFamily",
    "model",
    "identifier",
    "serialNumber",
    "parentGroupUuids"
})
public class SystemIdentity implements Serializable
{

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("uuid")
    private String uuid;
    @JsonProperty("productFamily")
    private String productFamily;
    @JsonProperty("product")
    private String product;
    @JsonProperty("modelFamily")
    private String modelFamily;
    @JsonProperty("model")
    private String model;
    @JsonProperty("identifier")
    private String identifier;
    @JsonProperty("serialNumber")
    private String serialNumber;
    @JsonProperty("parentGroupUuids")
    private List parentGroupUuids = new ArrayList();
    @JsonIgnore
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = 4932622059588052545L;

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

    /**
     * 
     * @param productFamily
     * @param identifier
     * @param product
     * @param serialNumber
     * @param modelFamily
     * @param parentGroupUuids
     * @param model
     * @param uuid
     */
    public SystemIdentity(String uuid, String productFamily, String product, String modelFamily, String model, String identifier, String serialNumber, List parentGroupUuids) {
        super();
        this.uuid = uuid;
        this.productFamily = productFamily;
        this.product = product;
        this.modelFamily = modelFamily;
        this.model = model;
        this.identifier = identifier;
        this.serialNumber = serialNumber;
        this.parentGroupUuids = parentGroupUuids;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The uuid
     */
    @JsonProperty("uuid")
    public String getUuid() {
        return uuid;
    }

    /**
     * 
     * (Required)
     * 
     * @param uuid
     *     The uuid
     */
    @JsonProperty("uuid")
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    /**
     * 
     * @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;
    }

    /**
     * 
     * @return
     *     The identifier
     */
    @JsonProperty("identifier")
    public String getIdentifier() {
        return identifier;
    }

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

    /**
     * 
     * @return
     *     The serialNumber
     */
    @JsonProperty("serialNumber")
    public String getSerialNumber() {
        return serialNumber;
    }

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

    /**
     * 
     * @return
     *     The parentGroupUuids
     */
    @JsonProperty("parentGroupUuids")
    public List getParentGroupUuids() {
        return parentGroupUuids;
    }

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

    @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(uuid).append(productFamily).append(product).append(modelFamily).append(model).append(identifier).append(serialNumber).append(parentGroupUuids).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof SystemIdentity) == false) {
            return false;
        }
        SystemIdentity rhs = ((SystemIdentity) other);
        return new EqualsBuilder().append(uuid, rhs.uuid).append(productFamily, rhs.productFamily).append(product, rhs.product).append(modelFamily, rhs.modelFamily).append(model, rhs.model).append(identifier, rhs.identifier).append(serialNumber, rhs.serialNumber).append(parentGroupUuids, rhs.parentGroupUuids).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy