Class NewMetadataElementRequestBody
java.lang.Object
org.odpi.openmetadata.viewservices.collectionmanager.rest.NewElementRequestBody
org.odpi.openmetadata.viewservices.collectionmanager.rest.NewMetadataElementRequestBody
NewMetadataElementRequestBody provides a structure for passing the properties for a new metadata element.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals 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.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatusReturn the initial status of the metadata element (typically ACTIVE).Return the open metadata type name for the new metadata element.inthashCode()Return hash code for this objectvoidsetInitialClassifications(Map<String, org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties> initialClassifications) Set up the map of classification name to properties describing the initial classification for the new metadata element.voidsetTypeName(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.viewservices.collectionmanager.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
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus getInitialStatus()Return the initial status of the metadata element (typically ACTIVE).- Returns:
- element status enum value
-
getInitialClassifications
public Map<String,org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties> 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
public void setInitialClassifications(Map<String, org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties> initialClassifications) 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:
toStringin classNewElementRequestBody- Returns:
- list of properties and their values.
-
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
-