Class B2EventNotificationEvent
- java.lang.Object
-
- com.backblaze.b2.client.structures.B2EventNotificationEvent
-
public class B2EventNotificationEvent extends java.lang.ObjectThe 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 booleanequals(java.lang.Object o)java.lang.StringgetAccountId()The ID of the account where the objects reside that corresponds to the event.java.lang.StringgetBucketId()The ID of the bucket where the objects reside that corresponds to the event.java.lang.StringgetBucketName()The name of the bucket where the objects reside that corresponds to the event.java.lang.StringgetEventId()The unique ID of the event.longgetEventTimestamp()The UTC time when this event was generated.java.lang.StringgetEventType()The event type of the event notification rule that corresponds to the event.intgetEventVersion()The version of the event notification payload.java.lang.StringgetMatchedRuleName()The name of the event notification rule the corresponds to the event.java.lang.StringgetObjectName()The name of the object that corresponds to the event.java.lang.LonggetObjectSize()The size of bytes of the object that corresponds to the event.java.lang.StringgetObjectVersionId()The unique identifier for the version of the object that corresponds to the event.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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:
toStringin classjava.lang.Object
-
-