![JAR search and dependency download from the Maven repository](/logo.png)
org.odpi.openmetadata.commonservices.ffdc.rest.ExternalReferenceLinkRequestBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ffdc-services Show documentation
Show all versions of ffdc-services Show documentation
Common services for First-Failure Data Capture (FFDC).
The newest version!
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.commonservices.ffdc.rest;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.Objects;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NONE;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.PUBLIC_ONLY;
/**
* ExternalReferenceRequestBody describes the properties of the external reference plus the optional identifiers for an
* owning element.
*/
@JsonAutoDetect(getterVisibility=PUBLIC_ONLY, setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class ExternalReferenceLinkRequestBody
{
private String linkId = null;
private String linkDescription = null;
/**
* Default constructor
*/
public ExternalReferenceLinkRequestBody()
{
super();
}
/**
* Copy/clone constructor.
*
* @param template object to copy
*/
public ExternalReferenceLinkRequestBody(ExternalReferenceLinkRequestBody template)
{
if (template != null)
{
linkId = template.getLinkId();
linkDescription = template.getLinkDescription();
}
}
/**
* Return the link id.
*
* @return string identifier
*/
public String getLinkId()
{
return linkId;
}
/**
* Set up the link id.
*
* @param linkId string identifier
*/
public void setLinkId(String linkId)
{
this.linkId = linkId;
}
/**
* Return the link description.
*
* @return string description
*/
public String getLinkDescription()
{
return linkDescription;
}
/**
* Set up the link description.
*
* @param linkDescription string description
*/
public void setLinkDescription(String linkDescription)
{
this.linkDescription = linkDescription;
}
/**
* JSON-style toString
*
* @return return string containing the property names and values
*/
@Override
public String toString()
{
return "ExternalReferenceLinkRequestBody{" +
"linkId='" + linkId + '\'' +
", linkDescription='" + linkDescription + '\'' +
'}';
}
/**
* Return comparison result based on the content of the properties.
*
* @param objectToCompare test object
* @return result of comparison
*/
@Override
public boolean equals(Object objectToCompare)
{
if (this == objectToCompare)
{
return true;
}
if (objectToCompare == null || getClass() != objectToCompare.getClass())
{
return false;
}
if (!super.equals(objectToCompare))
{
return false;
}
ExternalReferenceLinkRequestBody that = (ExternalReferenceLinkRequestBody) objectToCompare;
return Objects.equals(linkId, that.linkId) &&
Objects.equals(linkDescription, that.linkDescription);
}
/**
* Return hash code for this object
*
* @return int hash code
*/
@Override
public int hashCode()
{
return Objects.hash(super.hashCode(), linkId, linkDescription);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy