Class RelationshipRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.datamanager.rest.DataManagerOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.datamanager.rest.ExternalSourceRequestBody
-
- org.odpi.openmetadata.accessservices.datamanager.rest.RelationshipRequestBody
-
- All Implemented Interfaces:
Serializable
public class RelationshipRequestBody extends ExternalSourceRequestBody
RelationshipRequestBody describes the request body used when linking elements together.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RelationshipRequestBody()
Default constructorRelationshipRequestBody(RelationshipRequestBody template)
Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object objectToCompare)
Return comparison result based on the content of the properties.RelationshipProperties
getProperties()
Return the properties for the relationship.int
hashCode()
Return hash code for this objectvoid
setProperties(RelationshipProperties properties)
Set up the properties for the relationship.String
toString()
JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.rest.ExternalSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
-
-
-
Constructor Detail
-
RelationshipRequestBody
public RelationshipRequestBody()
Default constructor
-
RelationshipRequestBody
public RelationshipRequestBody(RelationshipRequestBody template)
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Detail
-
getProperties
public RelationshipProperties getProperties()
Return the properties for the relationship.- Returns:
- properties object
-
setProperties
public void setProperties(RelationshipProperties properties)
Set up the properties for the relationship.- Parameters:
properties
- properties object
-
toString
public String toString()
JSON-style toString- Overrides:
toString
in classExternalSourceRequestBody
- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equals
in classExternalSourceRequestBody
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCode
in classExternalSourceRequestBody
- Returns:
- int hash code
-
-