Class NewMetadataElementRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
org.odpi.openmetadata.commonservices.ffdc.rest.NewMetadataElementRequestBody
NewMetadataElementRequestBody provides a structure for passing the properties for a new metadata element.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the map of classification name to properties describing the initial classification for the new metadata element.Return the initial status of the metadata element (typically ACTIVE).Return the open metadata type name for the new metadata element.int
hashCode()
Return hash code for this objectvoid
setInitialClassifications
(Map<String, ElementProperties> initialClassifications) Set up the map of classification name to properties describing the initial classification for the new metadata element.void
setTypeName
(String typeName) Set up the open metadata type name for the new metadata element.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
getAnchorGUID, getIsOwnAnchor, getParentAtEnd1, getParentGUID, getParentRelationshipProperties, getParentRelationshipTypeName, setAnchorGUID, setIsOwnAnchor, setParentAtEnd1, setParentGUID, setParentRelationshipProperties, setParentRelationshipTypeName
-
Constructor Details
-
NewMetadataElementRequestBody
public NewMetadataElementRequestBody()Default constructor -
NewMetadataElementRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getTypeName
Return the open metadata type name for the new metadata element.- Returns:
- string name
-
setTypeName
Set up the open metadata type name for the new metadata element.- Parameters:
typeName
- string name
-
getInitialStatus
Return the initial status of the metadata element (typically ACTIVE).- Returns:
- element status enum value
-
getInitialClassifications
Return the map of classification name to properties describing the initial classification for the new metadata element.- Returns:
- map of classification name to classification properties (or null for none)
-
setInitialClassifications
Set up the map of classification name to properties describing the initial classification for the new metadata element.- Parameters:
initialClassifications
- map of classification name to classification properties (or null for none)
-
toString
JSON-style toString.- Overrides:
toString
in classNewElementRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classNewElementRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classNewElementRequestBody
- Returns:
- int hash code
-