Class NewMetadataElementRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.rest.MetadataSourceRequestBody
org.odpi.openmetadata.frameworkservices.gaf.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 TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.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 initial status of the metadata element (typically ACTIVE).Return the properties for the new metadata element.Returns the unique identifier of the element to use as a template (optional).Return the open metadata type name for the new metadata element.int
hashCode()
Return hash code for this objectvoid
setEffectiveFrom
(Date effectiveFrom) Set up the date/time that this new element becomes effective in the governance program (null means immediately).void
setEffectiveTime
(Date effectiveTime) Set up the effective time use on any queries for related elements.void
setEffectiveTo
(Date effectiveTo) Set up the date/time when the new element is no longer effective in the governance program (null means until deleted).void
setInitialStatus
(ElementStatus initialStatus) Set up the initial status of the metadata element (typically ACTIVE).void
setProperties
(ElementProperties properties) Set up the properties for the new metadata element.void
setTemplateGUID
(String templateGUID) Set up the unique identifier of the element to use as a template (optional).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.frameworkservices.gaf.rest.MetadataSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
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
-
setInitialStatus
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
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
-
setTemplateGUID
Set up the unique identifier of the element to use as a template (optional).- Parameters:
templateGUID
- String guid
-
getTemplateGUID
Returns the unique identifier of the element to use as a template (optional).- Returns:
- string guid
-
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:
toString
in classMetadataSourceRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classMetadataSourceRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classMetadataSourceRequestBody
- Returns:
- int hash code
-