Class RelationshipRequestBody
java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.rest.AssetOwnerOMASAPIRequestBody
org.odpi.openmetadata.accessservices.assetowner.rest.EffectiveTimeQueryRequestBody
org.odpi.openmetadata.accessservices.assetowner.rest.RelationshipRequestBody
RelationshipRequestBody describes the request body used when linking elements together.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the properties for the relationship.Return the name of the relationship type.inthashCode()Return hash code for this objectvoidsetProperties(RelationshipProperties properties) Set up the properties for the relationship.voidsetRelationshipName(String relationshipName) Set up the name of the relationship type.toString()JSON-style toStringMethods inherited from class org.odpi.openmetadata.accessservices.assetowner.rest.EffectiveTimeQueryRequestBody
getEffectiveTime, setEffectiveTime
-
Constructor Details
-
RelationshipRequestBody
public RelationshipRequestBody()Default constructor -
RelationshipRequestBody
Copy/clone constructor.- Parameters:
template- object to copy
-
-
Method Details
-
getRelationshipName
Return the name of the relationship type.- Returns:
- type name
-
setRelationshipName
Set up the name of the relationship type.- Parameters:
relationshipName- type name
-
getProperties
Return the properties for the relationship.- Returns:
- properties object
-
setProperties
Set up the properties for the relationship.- Parameters:
properties- properties object
-
toString
JSON-style toString- Overrides:
toStringin classEffectiveTimeQueryRequestBody- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equalsin classEffectiveTimeQueryRequestBody- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classEffectiveTimeQueryRequestBody- Returns:
- int hash code
-