Record Class WebhookEvent
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.us.green.button.dtos.WebhookEvent
-
Constructor Summary
ConstructorsConstructorDescriptionWebhookEvent(String uid, String type, ZonedDateTime ts, String deliveryMethod, URI deliveryTarget, boolean isDelivered, String authorizationUid, String meterUid) Creates an instance of aWebhookEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizationUidrecord component.Returns the value of thedeliveryMethodrecord component.Returns the value of thedeliveryTargetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisDeliveredrecord component.meterUid()Returns the value of themeterUidrecord component.final StringtoString()Returns a string representation of this record class.ts()Returns the value of thetsrecord component.type()Returns the value of thetyperecord component.uid()Returns the value of theuidrecord component.
-
Constructor Details
-
WebhookEvent
public WebhookEvent(String uid, String type, ZonedDateTime ts, String deliveryMethod, URI deliveryTarget, boolean isDelivered, @Nullable String authorizationUid, @Nullable String meterUid) Creates an instance of aWebhookEventrecord class.- Parameters:
uid- the value for theuidrecord componenttype- the value for thetyperecord componentts- the value for thetsrecord componentdeliveryMethod- the value for thedeliveryMethodrecord componentdeliveryTarget- the value for thedeliveryTargetrecord componentisDelivered- the value for theisDeliveredrecord componentauthorizationUid- the value for theauthorizationUidrecord componentmeterUid- the value for themeterUidrecord 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 '=='. -
uid
Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
ts
Returns the value of thetsrecord component.- Returns:
- the value of the
tsrecord component
-
deliveryMethod
Returns the value of thedeliveryMethodrecord component.- Returns:
- the value of the
deliveryMethodrecord component
-
deliveryTarget
Returns the value of thedeliveryTargetrecord component.- Returns:
- the value of the
deliveryTargetrecord component
-
isDelivered
public boolean isDelivered()Returns the value of theisDeliveredrecord component.- Returns:
- the value of the
isDeliveredrecord component
-
authorizationUid
Returns the value of theauthorizationUidrecord component.- Returns:
- the value of the
authorizationUidrecord component
-
meterUid
Returns the value of themeterUidrecord component.- Returns:
- the value of the
meterUidrecord component
-