Class ReferenceableRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityProfileOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.ReferenceableRequestBody
-
- All Implemented Interfaces:
Serializable
public class ReferenceableRequestBody extends ExternalSourceRequestBody
ReferenceableRequestBody describes the request body used when working with referenceables.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReferenceableRequestBody()Default constructorReferenceableRequestBody(ReferenceableRequestBody template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.StringgetParentGUID()Return an optional anchor GUID to attach the new element to.ReferenceablePropertiesgetProperties()Return the properties for the relationship.inthashCode()Return hash code for this objectvoidsetParentGUID(String parentGUID)Set up an optional anchor GUID to attach the new element to.voidsetProperties(ReferenceableProperties properties)Set up the properties for the relationship.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
-
-
-
Constructor Detail
-
ReferenceableRequestBody
public ReferenceableRequestBody()
Default constructor
-
ReferenceableRequestBody
public ReferenceableRequestBody(ReferenceableRequestBody template)
Copy/clone constructor.- Parameters:
template- object to copy
-
-
Method Detail
-
getProperties
public ReferenceableProperties getProperties()
Return the properties for the relationship.- Returns:
- properties object
-
setProperties
public void setProperties(ReferenceableProperties properties)
Set up the properties for the relationship.- Parameters:
properties- properties object
-
getParentGUID
public String getParentGUID()
Return an optional anchor GUID to attach the new element to.- Returns:
- guid
-
setParentGUID
public void setParentGUID(String parentGUID)
Set up an optional anchor GUID to attach the new element to.- Parameters:
parentGUID- guid
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin 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:
equalsin classExternalSourceRequestBody- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classExternalSourceRequestBody- Returns:
- int hash code
-
-