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
Modifier and TypeMethodDescriptionWhen 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.notifications(Collection<NotificationOutput> notifications) The results of theListNotificationsaction.notifications(Consumer<NotificationOutput.Builder>... notifications) The results of theListNotificationsaction.notifications(NotificationOutput... notifications) The results of theListNotificationsaction.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.datazone.model.DataZoneResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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 tonotifications(List<NotificationOutput>).- 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:
-