Package io.a2a.spec
Record Class PushNotificationConfig
java.lang.Object
java.lang.Record
io.a2a.spec.PushNotificationConfig
public record PushNotificationConfig(String url, String token, PushNotificationAuthenticationInfo authentication, String id)
extends Record
Defines the configuration for setting up push notifications for task updates.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.core.type.TypeReference<PushNotificationConfig> -
Constructor Summary
ConstructorsConstructorDescriptionPushNotificationConfig(String url, String token, PushNotificationAuthenticationInfo authentication, String id) Creates an instance of aPushNotificationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthenticationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Field Details
-
TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<PushNotificationConfig> TYPE_REFERENCE
-
-
Constructor Details
-
PushNotificationConfig
public PushNotificationConfig(String url, String token, PushNotificationAuthenticationInfo authentication, String id) Creates an instance of aPushNotificationConfigrecord class.- Parameters:
url- the value for theurlrecord componenttoken- the value for thetokenrecord componentauthentication- the value for theauthenticationrecord componentid- the value for theidrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
authentication
Returns the value of theauthenticationrecord component.- Returns:
- the value of the
authenticationrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-