Interface ListStreamSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListStreamSessionsResponse.Builder,
,ListStreamSessionsResponse> IvsResponse.Builder
,SdkBuilder<ListStreamSessionsResponse.Builder,
,ListStreamSessionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListStreamSessionsResponse
public static interface ListStreamSessionsResponse.Builder
extends IvsResponse.Builder, SdkPojo, CopyableBuilder<ListStreamSessionsResponse.Builder,ListStreamSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf there are more streams thanmaxResults
, usenextToken
in the request to get the next set.streamSessions
(Collection<StreamSessionSummary> streamSessions) List of stream sessions.streamSessions
(Consumer<StreamSessionSummary.Builder>... streamSessions) List of stream sessions.streamSessions
(StreamSessionSummary... streamSessions) List of stream sessions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ivs.model.IvsResponse.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
streamSessions
List of stream sessions.
- Parameters:
streamSessions
- List of stream sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamSessions
List of stream sessions.
- Parameters:
streamSessions
- List of stream sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamSessions
ListStreamSessionsResponse.Builder streamSessions(Consumer<StreamSessionSummary.Builder>... streamSessions) List of stream sessions.
This is a convenience method that creates an instance of theStreamSessionSummary.Builder
avoiding the need to create one manually viaStreamSessionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostreamSessions(List<StreamSessionSummary>)
.- Parameters:
streamSessions
- a consumer that will call methods onStreamSessionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If there are more streams than
maxResults
, usenextToken
in the request to get the next set.- Parameters:
nextToken
- If there are more streams thanmaxResults
, usenextToken
in the request to get the next set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-