Class ReferenceableRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody
org.odpi.openmetadata.commonservices.ffdc.rest.ReferenceableRequestBody
- Direct Known Subclasses:
ReferenceableUpdateRequestBody
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 TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return an optional anchor GUID to attach the new element to.Return an optional anchor GUID to attach the new element to.org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceablePropertiesReturn the properties for the relationship.inthashCode()Return hash code for this objectvoidsetAnchorGUID(String anchorGUID) Set up an optional anchor GUID to attach the new element to.voidsetParentGUID(String parentGUID) Set up an optional anchor GUID to attach the new element to.voidsetProperties(org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties properties) Set up the properties for the relationship.toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
Constructor Details
-
ReferenceableRequestBody
public ReferenceableRequestBody()Default constructor -
ReferenceableRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getProperties
public org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties getProperties()Return the properties for the relationship.- Returns:
- properties object
-
setProperties
public void setProperties(org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties properties) 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
-
getParentGUID
Return an optional anchor GUID to attach the new element to.- Returns:
- guid
-
setParentGUID
Set up an optional anchor GUID to attach the new element to.- Parameters:
parentGUID- guid
-
toString
JSON-style toString.- Overrides:
toStringin classExternalSourceRequestBody- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classExternalSourceRequestBody- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classExternalSourceRequestBody- Returns:
- int hash code
-