Class NewElementRequestBody
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.commonservices.ffdc.rest.NewElementRequestBody
NewElementRequestBody provides a structure used when creating new elements.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorNewElementRequestBody
(NewElementRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the map of classification names to classification properties to include in the entity creation request.Return any properties to include in parent relationship.Return the properties of the new element.int
hashCode()
Return hash code for this objectvoid
setInitialClassifications
(Map<String, ClassificationProperties> initialClassifications) Set up map of classification names to classification properties to include in the entity creation request.void
setParentRelationshipProperties
(RelationshipProperties parentRelationshipProperties) Set up any properties to include in parent relationship.void
setProperties
(OpenMetadataRootProperties properties) Set up the properties of the new element.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.NewElementOptions
getInitialStatus, setInitialStatus
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.NewLinkedElementOptions
getParentAtEnd1, getParentGUID, getParentRelationshipTypeName, setParentAtEnd1, setParentGUID, setParentRelationshipTypeName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.AnchorOptions
getAnchorGUID, getAnchorScopeGUID, getIsOwnAnchor, setAnchorGUID, setAnchorScopeGUID, setIsOwnAnchor
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
getEffectiveTime, getForDuplicateProcessing, getForLineage, getGovernanceZoneFilter, setEffectiveTime, setForDuplicateProcessing, setForLineage, setGovernanceZoneFilter
-
Constructor Details
-
NewElementRequestBody
public NewElementRequestBody()Default constructor -
NewElementRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getProperties
Return the properties of the new element.- Returns:
- properties
-
setProperties
Set up the properties of the new element.- Parameters:
properties
- properties
-
getInitialClassifications
Return the map of classification names to classification properties to include in the entity creation request.- Returns:
- map
-
setInitialClassifications
Set up map of classification names to classification properties to include in the entity creation request.- Parameters:
initialClassifications
- map
-
getParentRelationshipProperties
Return any properties to include in parent relationship.- Returns:
- relationship properties
-
setParentRelationshipProperties
Set up any properties to include in parent relationship.- Parameters:
parentRelationshipProperties
- relationship properties
-
toString
JSON-style toString.- Overrides:
toString
in classNewElementOptions
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classNewElementOptions
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classNewElementOptions
- Returns:
- int hash code
-