Class SafetyIdentifierBlockedWebhookEvent
-
- All Implemented Interfaces:
public final class SafetyIdentifierBlockedWebhookEventSent when a request associated with a safety identifier has been blocked.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSafetyIdentifierBlockedWebhookEvent.BuilderA builder for SafetyIdentifierBlockedWebhookEvent.
public final classSafetyIdentifierBlockedWebhookEvent.DataEvent data payload.
public final classSafetyIdentifierBlockedWebhookEvent.ObjectThe object of the event. Always
event.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the event. final LongcreatedAt()The Unix timestamp (in seconds) of when the request was blocked. final SafetyIdentifierBlockedWebhookEvent.Datadata()Event data payload. final JsonValue_type()The type of the event. final Optional<SafetyIdentifierBlockedWebhookEvent.Object>object_()The object of the event. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_createdAt()Returns the raw JSON value of createdAt. final JsonField<SafetyIdentifierBlockedWebhookEvent.Data>_data()Returns the raw JSON value of data. final JsonField<SafetyIdentifierBlockedWebhookEvent.Object>_object_()Returns the raw JSON value of object_. final Map<String, JsonValue>_additionalProperties()final SafetyIdentifierBlockedWebhookEvent.BuildertoBuilder()final SafetyIdentifierBlockedWebhookEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SafetyIdentifierBlockedWebhookEvent.Builderbuilder()Returns a mutable builder for constructing an instance of SafetyIdentifierBlockedWebhookEvent. -
-
Method Detail
-
data
final SafetyIdentifierBlockedWebhookEvent.Data data()
Event data payload.
-
_type
final JsonValue _type()
The type of the event. Always
safety_identifier.blocked.Expected to always return the following:
JsonValue.from("safety_identifier.blocked")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
object_
final Optional<SafetyIdentifierBlockedWebhookEvent.Object> object_()
The object of the event. Always
event.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<SafetyIdentifierBlockedWebhookEvent.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_object_
final JsonField<SafetyIdentifierBlockedWebhookEvent.Object> _object_()
Returns the raw JSON value of object_.
Unlike object_, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SafetyIdentifierBlockedWebhookEvent.Builder toBuilder()
-
validate
final SafetyIdentifierBlockedWebhookEvent validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SafetyIdentifierBlockedWebhookEvent.Builder builder()
Returns a mutable builder for constructing an instance of SafetyIdentifierBlockedWebhookEvent.
The following fields are required:
.id() .createdAt() .data()
-
-
-
-