Class B2EventNotificationEvent
- java.lang.Object
-
- com.backblaze.b2.client.structures.B2EventNotificationEvent
-
public class B2EventNotificationEvent extends java.lang.Object
The individual event notification for an object.
-
-
Constructor Summary
Constructors Constructor Description B2EventNotificationEvent(java.lang.String accountId, java.lang.String bucketId, java.lang.String bucketName, long eventTimestamp, java.lang.String eventType, java.lang.String eventId, int eventVersion, java.lang.String matchedRuleName, java.lang.String objectName, java.lang.Long objectSize, java.lang.String objectVersionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAccountId()
The ID of the account where the objects reside that corresponds to the event.java.lang.String
getBucketId()
The ID of the bucket where the objects reside that corresponds to the event.java.lang.String
getBucketName()
The name of the bucket where the objects reside that corresponds to the event.java.lang.String
getEventId()
The unique ID of the event.long
getEventTimestamp()
The UTC time when this event was generated.java.lang.String
getEventType()
The event type of the event notification rule that corresponds to the event.int
getEventVersion()
The version of the event notification payload.java.lang.String
getMatchedRuleName()
The name of the event notification rule the corresponds to the event.java.lang.String
getObjectName()
The name of the object that corresponds to the event.java.lang.Long
getObjectSize()
The size of bytes of the object that corresponds to the event.java.lang.String
getObjectVersionId()
The unique identifier for the version of the object that corresponds to the event.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
B2EventNotificationEvent
public B2EventNotificationEvent(java.lang.String accountId, java.lang.String bucketId, java.lang.String bucketName, long eventTimestamp, java.lang.String eventType, java.lang.String eventId, int eventVersion, java.lang.String matchedRuleName, java.lang.String objectName, java.lang.Long objectSize, java.lang.String objectVersionId)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getEventVersion
public int getEventVersion()
The version of the event notification payload.
-
getMatchedRuleName
public java.lang.String getMatchedRuleName()
The name of the event notification rule the corresponds to the event.
-
getBucketName
public java.lang.String getBucketName()
The name of the bucket where the objects reside that corresponds to the event.
-
getBucketId
public java.lang.String getBucketId()
The ID of the bucket where the objects reside that corresponds to the event.
-
getAccountId
public java.lang.String getAccountId()
The ID of the account where the objects reside that corresponds to the event.
-
getEventTimestamp
public long getEventTimestamp()
The UTC time when this event was generated. It is a base 10 number of milliseconds since midnight, January 1, 1970 UTC.
-
getEventType
public java.lang.String getEventType()
The event type of the event notification rule that corresponds to the event.
-
getEventId
public java.lang.String getEventId()
The unique ID of the event.
-
getObjectName
public java.lang.String getObjectName()
The name of the object that corresponds to the event. This will be null for test events.
-
getObjectSize
public java.lang.Long getObjectSize()
The size of bytes of the object that corresponds to the event. The objectSize would be null for hide marker, delete, and test events.
-
getObjectVersionId
public java.lang.String getObjectVersionId()
The unique identifier for the version of the object that corresponds to the event. This will be null for test events.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-