Record Class ListTaskPushNotificationConfigsParams
java.lang.Object
java.lang.Record
org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsParams
- Record Components:
id- the task identifier (required)pageSize- the maximum number of items to return per pagepageToken- the pagination token for the next pagetenant- optional tenant, provided as a path parameter.
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.
- See Also:
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
-
pageSize
-
pageToken
-
tenant
-