Package dev.postproxy.sdk.model
Record Class WebhookDelivery
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.WebhookDelivery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattemptedAtrecord component.intReturns the value of theattemptNumberrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.Returns the value of theeventTyperecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theresponseStatusrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WebhookDelivery
public WebhookDelivery(String id, String eventId, String eventType, Integer responseStatus, int attemptNumber, boolean success, String attemptedAt, String createdAt) Creates an instance of aWebhookDeliveryrecord class.- Parameters:
id- the value for theidrecord componenteventId- the value for theeventIdrecord componenteventType- the value for theeventTyperecord componentresponseStatus- the value for theresponseStatusrecord componentattemptNumber- the value for theattemptNumberrecord componentsuccess- the value for thesuccessrecord componentattemptedAt- the value for theattemptedAtrecord componentcreatedAt- the value for thecreatedAtrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
eventId
Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
eventType
Returns the value of theeventTyperecord component.- Returns:
- the value of the
eventTyperecord component
-
responseStatus
Returns the value of theresponseStatusrecord component.- Returns:
- the value of the
responseStatusrecord component
-
attemptNumber
public int attemptNumber()Returns the value of theattemptNumberrecord component.- Returns:
- the value of the
attemptNumberrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
attemptedAt
Returns the value of theattemptedAtrecord component.- Returns:
- the value of the
attemptedAtrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-