Package org.a2aproject.sdk.spec
Record Class ListTaskPushNotificationConfigsParams
java.lang.Object
java.lang.Record
org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsParams
- Record Components:
id- the task identifier (required)tenant- optional tenant, provided as a path parameter.pageSize- the maximum number of items to return per pagepageToken- the pagination token for the next page
public record ListTaskPushNotificationConfigsParams(String id, int pageSize, String pageToken, @Nullable String tenant)
extends Record
Parameters for listing all push notification configurations for a task.
This record specifies which task's push notification configurations to list, returning all configured notification endpoints for that task.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing instances. -
Constructor Summary
ConstructorsConstructorDescriptionConvenience constructor with default tenant.ListTaskPushNotificationConfigsParams(String id, int pageSize, String pageToken, @Nullable String tenant) Compact constructor for validation. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new Builderfinal booleanIndicates whether some other object is "equal to" this one.intValidates and returns the effective page size (between 1 and 100, defaults to 100).final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intpageSize()Returns the value of thepageSizerecord component.Returns the value of thepageTokenrecord component.@Nullable Stringtenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListTaskPushNotificationConfigsParams
public ListTaskPushNotificationConfigsParams(String id, int pageSize, String pageToken, @Nullable String tenant) Compact constructor for validation. Validates that required parameters are not null.- Parameters:
id- the task identifierpageSize- the maximum number of items to return per pagepageToken- the pagination token for the next pagetenant- the tenant identifier- Throws:
IllegalArgumentException- if id or tenant is null
-
ListTaskPushNotificationConfigsParams
Convenience constructor with default tenant.- Parameters:
id- the task identifier (required)
-
-
Method Details
-
getEffectivePageSize
public int getEffectivePageSize()Validates and returns the effective page size (between 1 and 100, defaults to 100).- Returns:
- the effective page size
-
builder
Create a new Builder- Returns:
- the builder
-
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
-
pageSize
public int pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
pageToken
Returns the value of thepageTokenrecord component.- Returns:
- the value of the
pageTokenrecord component
-
tenant
Returns the value of thetenantrecord component.- Returns:
- the value of the
tenantrecord component
-