Class NewOpenMetadataElementRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.rest.MetadataSourceRequestBody
org.odpi.openmetadata.frameworkservices.gaf.rest.NewOpenMetadataElementRequestBody
NewOpenMetadataElementRequestBody 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 unique identifier of the element that should be the anchor for the new element.Return the date/time that this new element becomes effective in the governance program (null means immediately).Return the effective time use on any queries for related elements.Return the date/time when the new element is no longer effective in the governance program (null means until deleted).Return the map of classification name to properties describing the initial classification for the new metadata element.org.odpi.openmetadata.frameworks.openmetadata.enums.ElementStatusReturn the initial status of the metadata element (typically ACTIVE).booleanReturn whether this element should be classified as its own anchor or not.booleanReturn which end any parent entity sits on the relationship.Return the optional unique identifier for an element that should be connected to the newly created element.org.odpi.openmetadata.frameworks.governanceaction.search.ElementPropertiesReturn any properties that should be included in the parent relationship.Return the name of the relationship, if any, that should be established between the new element and the parent element.org.odpi.openmetadata.frameworks.governanceaction.search.ElementPropertiesReturn the properties for the new metadata element.Return the open metadata type name for the new metadata element.inthashCode()Return hash code for this objectvoidsetAnchorGUID(String anchorGUID) Set up the unique identifier of the element that should be the anchor for the new element.voidsetEffectiveFrom(Date effectiveFrom) Set up the date/time that this new element becomes effective in the governance program (null means immediately).voidsetEffectiveTime(Date effectiveTime) Set up the effective time use on any queries for related elements.voidsetEffectiveTo(Date effectiveTo) Set up the date/time when the new element is no longer effective in the governance program (null means until deleted).voidsetInitialClassifications(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.voidsetInitialStatus(org.odpi.openmetadata.frameworks.openmetadata.enums.ElementStatus initialStatus) Set up the initial status of the metadata element (typically ACTIVE).voidsetIsOwnAnchor(boolean ownAnchor) Set up whether this element should be classified as its own anchor or not.voidsetParentAtEnd1(boolean parentAtEnd1) Set up which end any parent entity sits on the relationship.voidsetParentGUID(String parentGUID) Set up the optional unique identifier for an element that should be connected to the newly created element.voidsetParentRelationshipProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties parentRelationshipProperties) Set up any properties that should be included in the parent relationship.voidsetParentRelationshipTypeName(String parentRelationshipTypeName) Set up the name of the optional relationship from the newly created element to a parent element.voidsetProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties 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.frameworkservices.gaf.rest.MetadataSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
Constructor Details
-
NewOpenMetadataElementRequestBody
public NewOpenMetadataElementRequestBody()Default constructor -
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
-
getInitialStatus
public org.odpi.openmetadata.frameworks.openmetadata.enums.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)
-
getAnchorGUID
Return the unique identifier of the element that should be the anchor for the new element. It is set to null if no anchor, or the Anchors classification is included in the initial classifications.- Returns:
- string guid
-
setAnchorGUID
Set up the unique identifier of the element that should be the anchor for the new element. Set to null if no anchor, or the Anchors classification is included in the initial classifications.- Parameters:
anchorGUID- string guid
-
getIsOwnAnchor
public boolean getIsOwnAnchor()Return whether this element should be classified as its own anchor or not. The default is false.- Returns:
- boolean
-
setIsOwnAnchor
public void setIsOwnAnchor(boolean ownAnchor) Set up whether this element should be classified as its own anchor or not. The default is false.- Parameters:
ownAnchor- boolean
-
setInitialStatus
public void setInitialStatus(org.odpi.openmetadata.frameworks.openmetadata.enums.ElementStatus initialStatus) Set up the initial status of the metadata element (typically ACTIVE).- Parameters:
initialStatus- element status enum value
-
getEffectiveFrom
Return the date/time that this new element becomes effective in the governance program (null means immediately).- Returns:
- date object
-
setEffectiveFrom
Set up the date/time that this new element becomes effective in the governance program (null means immediately).- Parameters:
effectiveFrom- date object
-
getEffectiveTo
Return the date/time when the new element is no longer effective in the governance program (null means until deleted).- Returns:
- date object
-
setEffectiveTo
Set up the date/time when the new element is no longer effective in the governance program (null means until deleted).- Parameters:
effectiveTo- date object
-
getProperties
public org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties getProperties()Return the properties for the new metadata element.- Returns:
- list of properties
-
setProperties
public void setProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties properties) Set up the properties for the new metadata element.- Parameters:
properties- list of properties
-
getParentGUID
Return the optional unique identifier for an element that should be connected to the newly created element. If this property is specified, parentRelationshipTypeName must also be specified.- Returns:
- string guid
-
setParentGUID
Set up the optional unique identifier for an element that should be connected to the newly created element. If this property is specified, parentRelationshipTypeName must also be specified.- Parameters:
parentGUID- string guid
-
getParentRelationshipTypeName
Return the name of the relationship, if any, that should be established between the new element and the parent element.- Returns:
- string type name
-
setParentRelationshipTypeName
Set up the name of the optional relationship from the newly created element to a parent element.- Parameters:
parentRelationshipTypeName- string type name
-
getParentRelationshipProperties
public org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties getParentRelationshipProperties()Return any properties that should be included in the parent relationship.- Returns:
- element properties
-
setParentRelationshipProperties
public void setParentRelationshipProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties parentRelationshipProperties) Set up any properties that should be included in the parent relationship.- Parameters:
parentRelationshipProperties- element properties
-
getParentAtEnd1
public boolean getParentAtEnd1()Return which end any parent entity sits on the relationship.- Returns:
- boolean
-
setParentAtEnd1
public void setParentAtEnd1(boolean parentAtEnd1) Set up which end any parent entity sits on the relationship.- Parameters:
parentAtEnd1- boolean
-
getEffectiveTime
Return the effective time use on any queries for related elements.- Returns:
- date object
-
setEffectiveTime
Set up the effective time use on any queries for related elements.- Parameters:
effectiveTime- date object
-
toString
JSON-style toString.- Overrides:
toStringin classMetadataSourceRequestBody- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classMetadataSourceRequestBody- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classMetadataSourceRequestBody- Returns:
- int hash code
-