Package dev.postproxy.sdk.model
Record Class Webhook
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.Webhook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of thedescriptionrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.secret()Returns the value of thesecretrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Webhook
public Webhook(String id, String url, List<String> events, boolean enabled, String description, String secret, String createdAt, String updatedAt) Creates an instance of aWebhookrecord class.- Parameters:
id- the value for theidrecord componenturl- the value for theurlrecord componentevents- the value for theeventsrecord componentenabled- the value for theenabledrecord componentdescription- the value for thedescriptionrecord componentsecret- the value for thesecretrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord 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
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-