Class UpdateEffectivityDatesRequestBody
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
org.odpi.openmetadata.frameworkservices.omf.rest.UpdateEffectivityDatesRequestBody
UpdateEffectivityDatesRequestBody provides a structure for passing the effectivity dates for a metadata element, classification or relationship.
-
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 date/time that this new element becomes effective in the governance program (null means immediately).Return the date/time when the new element is no longer effective in the governance program (null means until deleted).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).voidsetEffectiveTo(Date effectiveTo) Set up the date/time when the new element is no longer effective in the governance program (null means until deleted).toString()JSON-style toString.Methods 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
-
UpdateEffectivityDatesRequestBody
public UpdateEffectivityDatesRequestBody()Default constructor -
UpdateEffectivityDatesRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
UpdateEffectivityDatesRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
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
-
toString
JSON-style toString.- Overrides:
toStringin classMetadataSourceOptions- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classMetadataSourceOptions- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classMetadataSourceOptions- Returns:
- int hash code
-