Interface ListUserNotificationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectResponse.Builder,CopyableBuilder<ListUserNotificationsResponse.Builder,,ListUserNotificationsResponse> SdkBuilder<ListUserNotificationsResponse.Builder,,ListUserNotificationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListUserNotificationsResponse
@Mutable
@NotThreadSafe
public static interface ListUserNotificationsResponse.Builder
extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<ListUserNotificationsResponse.Builder,ListUserNotificationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next set of results.userNotifications(Collection<UserNotificationSummary> userNotifications) A list of notifications sent to the specified user.userNotifications(Consumer<UserNotificationSummary.Builder>... userNotifications) A list of notifications sent to the specified user.userNotifications(UserNotificationSummary... userNotifications) A list of notifications sent to the specified user.Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
userNotifications
ListUserNotificationsResponse.Builder userNotifications(Collection<UserNotificationSummary> userNotifications) A list of notifications sent to the specified user.
- Parameters:
userNotifications- A list of notifications sent to the specified user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userNotifications
ListUserNotificationsResponse.Builder userNotifications(UserNotificationSummary... userNotifications) A list of notifications sent to the specified user.
- Parameters:
userNotifications- A list of notifications sent to the specified user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userNotifications
ListUserNotificationsResponse.Builder userNotifications(Consumer<UserNotificationSummary.Builder>... userNotifications) A list of notifications sent to the specified user.
This is a convenience method that creates an instance of theUserNotificationSummary.Builderavoiding the need to create one manually viaUserNotificationSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserNotifications(List<UserNotificationSummary>).- Parameters:
userNotifications- a consumer that will call methods onUserNotificationSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next set of results. If present, there are more results available.
- Parameters:
nextToken- The token for the next set of results. If present, there are more results available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-