Interface ListEventSourcesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListEventSourcesResponse.Builder,ListEventSourcesResponse>,EventBridgeResponse.Builder,SdkBuilder<ListEventSourcesResponse.Builder,ListEventSourcesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListEventSourcesResponse
public static interface ListEventSourcesResponse.Builder extends EventBridgeResponse.Builder, SdkPojo, CopyableBuilder<ListEventSourcesResponse.Builder,ListEventSourcesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListEventSourcesResponse.BuildereventSources(Collection<EventSource> eventSources)The list of event sources.ListEventSourcesResponse.BuildereventSources(Consumer<EventSource.Builder>... eventSources)The list of event sources.ListEventSourcesResponse.BuildereventSources(EventSource... eventSources)The list of event sources.ListEventSourcesResponse.BuildernextToken(String nextToken)A token indicating there are more results available.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeResponse.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 Detail
-
eventSources
ListEventSourcesResponse.Builder eventSources(Collection<EventSource> eventSources)
The list of event sources.
- Parameters:
eventSources- The list of event sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSources
ListEventSourcesResponse.Builder eventSources(EventSource... eventSources)
The list of event sources.
- Parameters:
eventSources- The list of event sources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSources
ListEventSourcesResponse.Builder eventSources(Consumer<EventSource.Builder>... eventSources)
The list of event sources.
This is a convenience method that creates an instance of theEventSource.Builderavoiding the need to create one manually viaEventSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#eventSources(List.) - Parameters:
eventSources- a consumer that will call methods onEventSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#eventSources(java.util.Collection)
-
nextToken
ListEventSourcesResponse.Builder nextToken(String nextToken)
A token indicating there are more results available. If there are no more results, no token is included in the response.
The value of
nextTokenis a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidTokenerror.- Parameters:
nextToken- A token indicating there are more results available. If there are no more results, no token is included in the response.The value of
nextTokenis a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidTokenerror.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-