Class TemplateRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.UpdateRequestBody
org.odpi.openmetadata.accessservices.assetowner.rest.TemplateRequestBody
TemplateRequestBody describes the request body used to create/update elements from templates.
-
Constructor Summary
ConstructorDescriptionDefault constructorTemplateRequestBody
(TemplateRequestBody template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the properties for the element.Return an optional parent GUID to attach the new element to.int
hashCode()
Return hash code for this objectvoid
setElementProperties
(TemplateProperties elementProperties) Set up the properties for the element.void
setParentGUID
(String parentGUID) Set up an optional parent GUID to attach the new element to.toString()
JSON-style toStringMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.UpdateRequestBody
getEffectiveTime, setEffectiveTime
-
Constructor Details
-
TemplateRequestBody
public TemplateRequestBody()Default constructor -
TemplateRequestBody
Copy/clone constructor.- Parameters:
template
- object to copy
-
-
Method Details
-
getElementProperties
Return the properties for the element.- Returns:
- properties object
-
setElementProperties
Set up the properties for the element.- Parameters:
elementProperties
- properties object
-
getParentGUID
Return an optional parent GUID to attach the new element to.- Returns:
- guid
-
setParentGUID
Set up an optional parent GUID to attach the new element to.- Parameters:
parentGUID
- guid
-
toString
JSON-style toString- Overrides:
toString
in classUpdateRequestBody
- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equals
in classUpdateRequestBody
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classUpdateRequestBody
- Returns:
- int hash code
-