Class TemplateRequestBody
java.lang.Object
org.odpi.openmetadata.viewservices.collectionmanager.rest.NewElementRequestBody
org.odpi.openmetadata.viewservices.collectionmanager.rest.TemplateRequestBody
TemplateRequestBody provides a structure for passing the properties for a new metadata element
that is to be created via a template.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorTemplateRequestBody(TemplateRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the property values to replace placeholders in the template.org.odpi.openmetadata.frameworks.governanceaction.search.ElementPropertiesReturn the properties for the new metadata element.Returns the unique identifier of the element to use as a template (optional).inthashCode()Return hash code for this objectvoidsetPlaceholderPropertyValues(Map<String, String> placeholderPropertyValues) Set up the property values to replace placeholders in the template.voidsetReplacementProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties replacementProperties) Set up the properties for the new metadata element.voidsetTemplateGUID(String templateGUID) Set up the unique identifier of the element to use as a template (optional).Methods inherited from class org.odpi.openmetadata.viewservices.collectionmanager.rest.NewElementRequestBody
getAnchorGUID, getIsOwnAnchor, getParentAtEnd1, getParentGUID, getParentRelationshipProperties, getParentRelationshipTypeName, setAnchorGUID, setIsOwnAnchor, setParentAtEnd1, setParentGUID, setParentRelationshipProperties, setParentRelationshipTypeName, toString
-
Constructor Details
-
TemplateRequestBody
public TemplateRequestBody()Default constructor -
TemplateRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getReplacementProperties
public org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties getReplacementProperties()Return the properties for the new metadata element.- Returns:
- list of properties
-
setReplacementProperties
public void setReplacementProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties replacementProperties) Set up the properties for the new metadata element.- Parameters:
replacementProperties- list of properties
-
setTemplateGUID
Set up the unique identifier of the element to use as a template (optional).- Parameters:
templateGUID- String guid
-
getTemplateGUID
Returns the unique identifier of the element to use as a template (optional).- Returns:
- string guid
-
getPlaceholderPropertyValues
Return the property values to replace placeholders in the template.- Returns:
- map of property name to property value
-
setPlaceholderPropertyValues
Set up the property values to replace placeholders in the template.- Parameters:
placeholderPropertyValues- map of property name to property value
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classNewElementRequestBody- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classNewElementRequestBody- Returns:
- int hash code
-