Record Class TurAssetEvent
java.lang.Object
java.lang.Record
com.viglet.turing.service.asset.TurAssetEvent
public record TurAssetEvent(TurAssetEvent.Type type, String objectName, String contentType, long size)
extends Record
Event published when an asset is uploaded or deleted in MinIO.
- Since:
- 2026.1.14
- Author:
- Alexandre Oliveira
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTurAssetEvent(TurAssetEvent.Type type, String objectName, String contentType, long size) Creates an instance of aTurAssetEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.static TurAssetEventfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectNamerecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.static TurAssetEvent
-
Constructor Details
-
TurAssetEvent
Creates an instance of aTurAssetEventrecord class.- Parameters:
type- the value for thetyperecord componentobjectName- the value for theobjectNamerecord componentcontentType- the value for thecontentTyperecord componentsize- the value for thesizerecord component
-
-
Method Details
-
uploaded
-
deleted
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
objectName
Returns the value of theobjectNamerecord component.- Returns:
- the value of the
objectNamerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-