Interface ListNotificationHubsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListNotificationHubsResponse.Builder,
,ListNotificationHubsResponse> NotificationsResponse.Builder
,SdkBuilder<ListNotificationHubsResponse.Builder,
,ListNotificationHubsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListNotificationHubsResponse
@Mutable
@NotThreadSafe
public static interface ListNotificationHubsResponse.Builder
extends NotificationsResponse.Builder, SdkPojo, CopyableBuilder<ListNotificationHubsResponse.Builder,ListNotificationHubsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA pagination token.notificationHubs
(Collection<NotificationHubOverview> notificationHubs) TheNotificationHubs
in the account.notificationHubs
(Consumer<NotificationHubOverview.Builder>... notificationHubs) TheNotificationHubs
in the account.notificationHubs
(NotificationHubOverview... notificationHubs) TheNotificationHubs
in the account.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.notifications.model.NotificationsResponse.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
notificationHubs
ListNotificationHubsResponse.Builder notificationHubs(Collection<NotificationHubOverview> notificationHubs) The
NotificationHubs
in the account.- Parameters:
notificationHubs
- TheNotificationHubs
in the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationHubs
The
NotificationHubs
in the account.- Parameters:
notificationHubs
- TheNotificationHubs
in the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationHubs
ListNotificationHubsResponse.Builder notificationHubs(Consumer<NotificationHubOverview.Builder>... notificationHubs) The
This is a convenience method that creates an instance of theNotificationHubs
in the account.NotificationHubOverview.Builder
avoiding the need to create one manually viaNotificationHubOverview.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonotificationHubs(List<NotificationHubOverview>)
.- Parameters:
notificationHubs
- a consumer that will call methods onNotificationHubOverview.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
- Parameters:
nextToken
- A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-