Package com.whatsapp.api.domain.webhook
Record Class Error
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Error
public record Error(int code, String title, String message, ErrorData errorData, String href)
extends Record
The type Error.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
code()
Returns the value of thecode
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorData
record component.final int
hashCode()
Returns a hash code value for this object.href()
Returns the value of thehref
record component.message()
Returns the value of themessage
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Error
Creates an instance of aError
record class.- Parameters:
code
- the value for thecode
record componenttitle
- the value for thetitle
record componentmessage
- the value for themessage
record componenterrorData
- the value for theerrorData
record componenthref
- the value for thehref
record 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 '=='. -
code
public int code()Returns the value of thecode
record component.- Returns:
- the value of the
code
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
errorData
Returns the value of theerrorData
record component.- Returns:
- the value of the
errorData
record component
-
href
Returns the value of thehref
record component.- Returns:
- the value of the
href
record component
-