Interface ListNotificationsResponse.Builder
- All Superinterfaces:
AuditManagerResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<ListNotificationsResponse.Builder,
,ListNotificationsResponse> SdkBuilder<ListNotificationsResponse.Builder,
,ListNotificationsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListNotificationsResponse
public static interface ListNotificationsResponse.Builder
extends AuditManagerResponse.Builder, SdkPojo, CopyableBuilder<ListNotificationsResponse.Builder,ListNotificationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination token that's used to fetch the next set of results.notifications
(Collection<Notification> notifications) The returned list of notifications.notifications
(Consumer<Notification.Builder>... notifications) The returned list of notifications.notifications
(Notification... notifications) The returned list of notifications.Methods inherited from interface software.amazon.awssdk.services.auditmanager.model.AuditManagerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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 Details
-
notifications
The returned list of notifications.
- Parameters:
notifications
- The returned list of notifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifications
The returned list of notifications.
- Parameters:
notifications
- The returned list of notifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifications
The returned list of notifications.
This is a convenience method that creates an instance of theNotification.Builder
avoiding the need to create one manually viaNotification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonotifications(List<Notification>)
.- Parameters:
notifications
- a consumer that will call methods onNotification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token that's used to fetch the next set of results.
- Parameters:
nextToken
- The pagination token that's used to fetch the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-