Interface ListNotificationsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListNotificationsResponse.Builder,ListNotificationsResponse>,DataZoneResponse.Builder,SdkBuilder<ListNotificationsResponse.Builder,ListNotificationsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListNotificationsResponse
public static interface ListNotificationsResponse.Builder extends DataZoneResponse.Builder, SdkPojo, CopyableBuilder<ListNotificationsResponse.Builder,ListNotificationsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListNotificationsResponse.BuildernextToken(String nextToken)When the number of notifications is greater than the default value for theMaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of notifications, the response includes a pagination token namedNextToken.ListNotificationsResponse.Buildernotifications(Collection<NotificationOutput> notifications)The results of theListNotificationsaction.ListNotificationsResponse.Buildernotifications(Consumer<NotificationOutput.Builder>... notifications)The results of theListNotificationsaction.ListNotificationsResponse.Buildernotifications(NotificationOutput... notifications)The results of theListNotificationsaction.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.datazone.model.DataZoneResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
ListNotificationsResponse.Builder nextToken(String nextToken)
When the number of notifications is greater than the default value for the
MaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of notifications, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListNotificationsto list the next set of notifications.- Parameters:
nextToken- When the number of notifications is greater than the default value for theMaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of notifications, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListNotificationsto list the next set of notifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifications
ListNotificationsResponse.Builder notifications(Collection<NotificationOutput> notifications)
The results of the
ListNotificationsaction.- Parameters:
notifications- The results of theListNotificationsaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifications
ListNotificationsResponse.Builder notifications(NotificationOutput... notifications)
The results of the
ListNotificationsaction.- Parameters:
notifications- The results of theListNotificationsaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifications
ListNotificationsResponse.Builder notifications(Consumer<NotificationOutput.Builder>... notifications)
The results of the
This is a convenience method that creates an instance of theListNotificationsaction.NotificationOutput.Builderavoiding the need to create one manually viaNotificationOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#notifications(List.) - Parameters:
notifications- a consumer that will call methods onNotificationOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#notifications(java.util.Collection)
-
-