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

com.dell.cpsd.identity.service.api.Identity Maven / Gradle / Ivy

The newest version!

package com.dell.cpsd.identity.service.api;

import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "elementType",
    "classification",
    "parents",
    "businessKeys",
    "contextualKeyAccuracy"
})
public class Identity {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("elementType")
    private String elementType;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("classification")
    private Classification classification;
    @JsonProperty("parents")
    private List parents = new ArrayList();
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("businessKeys")
    private List businessKeys = new ArrayList();
    @JsonProperty("contextualKeyAccuracy")
    private Integer contextualKeyAccuracy = 2;

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

    /**
     * 
     * @param contextualKeyAccuracy
     * @param businessKeys
     * @param classification
     * @param elementType
     * @param parents
     */
    public Identity(String elementType, Classification classification, List parents, List businessKeys, Integer contextualKeyAccuracy) {
        super();
        this.elementType = elementType;
        this.classification = classification;
        this.parents = parents;
        this.businessKeys = businessKeys;
        this.contextualKeyAccuracy = contextualKeyAccuracy;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The elementType
     */
    @JsonProperty("elementType")
    public String getElementType() {
        return elementType;
    }

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

    /**
     * 
     * (Required)
     * 
     * @return
     *     The classification
     */
    @JsonProperty("classification")
    public Classification getClassification() {
        return classification;
    }

    /**
     * 
     * (Required)
     * 
     * @param classification
     *     The classification
     */
    @JsonProperty("classification")
    public void setClassification(Classification classification) {
        this.classification = classification;
    }

    /**
     * 
     * @return
     *     The parents
     */
    @JsonProperty("parents")
    public List getParents() {
        return parents;
    }

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

    /**
     * 
     * (Required)
     * 
     * @return
     *     The businessKeys
     */
    @JsonProperty("businessKeys")
    public List getBusinessKeys() {
        return businessKeys;
    }

    /**
     * 
     * (Required)
     * 
     * @param businessKeys
     *     The businessKeys
     */
    @JsonProperty("businessKeys")
    public void setBusinessKeys(List businessKeys) {
        this.businessKeys = businessKeys;
    }

    /**
     * 
     * @return
     *     The contextualKeyAccuracy
     */
    @JsonProperty("contextualKeyAccuracy")
    public Integer getContextualKeyAccuracy() {
        return contextualKeyAccuracy;
    }

    /**
     * 
     * @param contextualKeyAccuracy
     *     The contextualKeyAccuracy
     */
    @JsonProperty("contextualKeyAccuracy")
    public void setContextualKeyAccuracy(Integer contextualKeyAccuracy) {
        this.contextualKeyAccuracy = contextualKeyAccuracy;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(elementType).append(classification).append(parents).append(businessKeys).append(contextualKeyAccuracy).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof Identity) == false) {
            return false;
        }
        Identity rhs = ((Identity) other);
        return new EqualsBuilder().append(elementType, rhs.elementType).append(classification, rhs.classification).append(parents, rhs.parents).append(businessKeys, rhs.businessKeys).append(contextualKeyAccuracy, rhs.contextualKeyAccuracy).isEquals();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy