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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListNotificationsResponse.BuildernextToken(String nextToken)The pagination token that's used to fetch the next set of results.ListNotificationsResponse.Buildernotifications(Collection<Notification> notifications)The returned list of notifications.ListNotificationsResponse.Buildernotifications(Consumer<Notification.Builder>... notifications)The returned list of notifications.ListNotificationsResponse.Buildernotifications(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 Detail
-
notifications
ListNotificationsResponse.Builder notifications(Collection<Notification> 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
ListNotificationsResponse.Builder notifications(Notification... 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
ListNotificationsResponse.Builder notifications(Consumer<Notification.Builder>... notifications)
The returned list of notifications.
This is a convenience method that creates an instance of theNotification.Builderavoiding the need to create one manually viaNotification.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 onNotification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#notifications(java.util.Collection)
-
nextToken
ListNotificationsResponse.Builder nextToken(String 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.
-
-