Class NewOpenMetadataElementRequestBody
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
org.odpi.openmetadata.frameworks.openmetadata.search.AnchorOptions
org.odpi.openmetadata.frameworks.openmetadata.search.NewLinkedElementOptions
org.odpi.openmetadata.frameworks.openmetadata.search.NewElementOptions
org.odpi.openmetadata.frameworkservices.omf.rest.NewOpenMetadataElementRequestBody
NewOpenMetadataElementRequestBody provides a structure for passing the properties for a new metadata element.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone 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.Return any properties that should be included in the parent relationship.Return the properties for the new metadata element.Return the open metadata type name for the new metadata element.inthashCode()Return hash code for this objectvoidsetInitialClassifications(Map<String, NewElementProperties> initialClassifications) Set up the map of classification name to properties describing the initial classification for the new metadata element.voidsetParentRelationshipProperties(NewElementProperties parentRelationshipProperties) Set up any properties that should be included in the parent relationship.voidsetProperties(NewElementProperties properties) Set up the properties 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.frameworks.openmetadata.search.NewElementOptions
getInitialStatus, setInitialStatusMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.NewLinkedElementOptions
getParentAtEnd1, getParentGUID, getParentRelationshipTypeName, setParentAtEnd1, setParentGUID, setParentRelationshipTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.AnchorOptions
getAnchorGUID, getAnchorScopeGUID, getIsOwnAnchor, setAnchorGUID, setAnchorScopeGUID, setIsOwnAnchorMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
getEffectiveTime, getForDuplicateProcessing, getForLineage, getGovernanceZoneFilter, setEffectiveTime, setForDuplicateProcessing, setForLineage, setGovernanceZoneFilter
-
Constructor Details
-
NewOpenMetadataElementRequestBody
public NewOpenMetadataElementRequestBody()Default constructor -
NewOpenMetadataElementRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
NewOpenMetadataElementRequestBody
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
-
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)
-
getProperties
Return the properties for the new metadata element.- Returns:
- list of properties
-
setProperties
Set up the properties for the new metadata element.- Parameters:
properties- list of properties
-
getParentRelationshipProperties
Return any properties that should be included in the parent relationship.- Returns:
- element properties
-
setParentRelationshipProperties
Set up any properties that should be included in the parent relationship.- Parameters:
parentRelationshipProperties- element properties
-
toString
JSON-style toString.- Overrides:
toStringin classNewElementOptions- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classNewElementOptions- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classNewElementOptions- Returns:
- int hash code
-