Interface SearchNotificationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectResponse.Builder,CopyableBuilder<SearchNotificationsResponse.Builder,,SearchNotificationsResponse> SdkBuilder<SearchNotificationsResponse.Builder,,SearchNotificationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchNotificationsResponse
@Mutable
@NotThreadSafe
public static interface SearchNotificationsResponse.Builder
extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<SearchNotificationsResponse.Builder,SearchNotificationsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionapproximateTotalCount(Long approximateTotalCount) The approximate total number of notifications matching the search criteria.The token for the next set of results.notifications(Collection<NotificationSearchSummary> notifications) A list of notifications matching the search criteria.notifications(Consumer<NotificationSearchSummary.Builder>... notifications) A list of notifications matching the search criteria.notifications(NotificationSearchSummary... notifications) A list of notifications matching the search criteria.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
-
notifications
SearchNotificationsResponse.Builder notifications(Collection<NotificationSearchSummary> notifications) A list of notifications matching the search criteria.
- Parameters:
notifications- A list of notifications matching the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifications
A list of notifications matching the search criteria.
- Parameters:
notifications- A list of notifications matching the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifications
SearchNotificationsResponse.Builder notifications(Consumer<NotificationSearchSummary.Builder>... notifications) A list of notifications matching the search criteria.
This is a convenience method that creates an instance of theNotificationSearchSummary.Builderavoiding the need to create one manually viaNotificationSearchSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotifications(List<NotificationSearchSummary>).- Parameters:
notifications- a consumer that will call methods onNotificationSearchSummary.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.
-
approximateTotalCount
The approximate total number of notifications matching the search criteria.
- Parameters:
approximateTotalCount- The approximate total number of notifications matching the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-