Class EffectiveDatesRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityProfileOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.MetadataSourceRequestBody
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.EffectiveDatesRequestBody
-
- All Implemented Interfaces:
Serializable
public class EffectiveDatesRequestBody extends MetadataSourceRequestBody
MetadataSourceRequestBody carries the parameters for marking an asset or schema as external.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EffectiveDatesRequestBody()Default constructorEffectiveDatesRequestBody(EffectiveDatesRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.DategetEffectiveFrom()Return the date/time that this element is effective from (null means effective from the epoch).DategetEffectiveTo()Return the date/time that element is effective to (null means that it is effective indefinitely into the future).inthashCode()Return hash code for this objectvoidsetEffectiveFrom(Date effectiveFrom)Set up the date/time that this element is effective from (null means effective from the epoch).voidsetEffectiveTo(Date effectiveTo)Set the date/time that element is effective to (null means that it is effective indefinitely into the future).StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.rest.MetadataSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
-
-
-
Constructor Detail
-
EffectiveDatesRequestBody
public EffectiveDatesRequestBody()
Default constructor
-
EffectiveDatesRequestBody
public EffectiveDatesRequestBody(EffectiveDatesRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getEffectiveFrom
public Date getEffectiveFrom()
Return the date/time that this element is effective from (null means effective from the epoch).- Returns:
- date object
-
setEffectiveFrom
public void setEffectiveFrom(Date effectiveFrom)
Set up the date/time that this element is effective from (null means effective from the epoch).- Parameters:
effectiveFrom- date object
-
getEffectiveTo
public Date getEffectiveTo()
Return the date/time that element is effective to (null means that it is effective indefinitely into the future).- Returns:
- date object
-
setEffectiveTo
public void setEffectiveTo(Date effectiveTo)
Set the date/time that element is effective to (null means that it is effective indefinitely into the future).- Parameters:
effectiveTo- date object
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classMetadataSourceRequestBody- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classMetadataSourceRequestBody- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classMetadataSourceRequestBody- Returns:
- int hash code
-
-