Class ReferenceableRequestBody
java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.rest.AssetOwnerOMASAPIRequestBody
org.odpi.openmetadata.accessservices.assetowner.rest.ReferenceableRequestBody
ReferenceableRequestBody provides a structure for passing a referenceables' properties as a request body over a REST API.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return an optional anchor GUID to attach the new element to.Return the properties for the relationship.int
hashCode()
Return hash code for this objectvoid
setAnchorGUID
(String anchorGUID) Set up an optional anchor GUID to attach the new element to.void
setProperties
(ReferenceableProperties properties) Set up the properties for the relationship.toString()
JSON-style toString.
-
Constructor Details
-
ReferenceableRequestBody
public ReferenceableRequestBody()Default constructor -
ReferenceableRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getProperties
Return the properties for the relationship.- Returns:
- properties object
-
setProperties
Set up the properties for the relationship.- Parameters:
properties
- properties object
-
getAnchorGUID
Return an optional anchor GUID to attach the new element to.- Returns:
- guid
-
setAnchorGUID
Set up an optional anchor GUID to attach the new element to.- Parameters:
anchorGUID
- guid
-
toString
JSON-style toString.- Overrides:
toString
in classAssetOwnerOMASAPIRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-