Class NewAssetEvent
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.AssetConsumerEvent
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.AssetEvent
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.NewAssetEvent
-
- All Implemented Interfaces:
Serializable
public class NewAssetEvent extends AssetEvent
NewAssetEvent describes the payload sent when a new Asset is added to the cohort metadata repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NewAssetEvent()Default constructorNewAssetEvent(NewAssetEvent template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreationTime()Return the time that the asset was created.voidsetCreationTime(Date creationTime)Set up the time that the asset was created.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.assetconsumer.events.AssetEvent
equals, getAsset, hashCode, setAsset
-
Methods inherited from class org.odpi.openmetadata.accessservices.assetconsumer.events.AssetConsumerEvent
getEventType, getEventVersionId, setEventType, setEventVersionId
-
-
-
-
Constructor Detail
-
NewAssetEvent
public NewAssetEvent()
Default constructor
-
NewAssetEvent
public NewAssetEvent(NewAssetEvent template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getCreationTime
public Date getCreationTime()
Return the time that the asset was created.- Returns:
- date/time
-
setCreationTime
public void setCreationTime(Date creationTime)
Set up the time that the asset was created.- Parameters:
creationTime- date/time
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classAssetEvent- Returns:
- return string containing the property names and values
-
-