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 TypeMethodDescriptionbooleanEquals 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).org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatusReturn the initial status of the metadata element (typically ACTIVE).org.odpi.openmetadata.frameworks.governanceaction.search.ElementPropertiesReturn 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.inthashCode()Return hash code for this objectvoidsetEffectiveFrom(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).voidsetInitialStatus(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStatus initialStatus) Set up the initial status of the metadata element (typically ACTIVE).voidsetProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties properties) Set up the properties for the new metadata element.voidsetTemplateGUID(String templateGUID) Set up the unique identifier of the element to use as a template (optional).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
-
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
-
setInitialStatus
public void setInitialStatus(org.odpi.openmetadata.frameworks.connectors.properties.beans.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
-
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:
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
-