Interface ListFragmentsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListFragmentsRequest.Builder,
,ListFragmentsRequest> KinesisVideoArchivedMediaRequest.Builder
,SdkBuilder<ListFragmentsRequest.Builder,
,ListFragmentsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ListFragmentsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListFragmentsRequest.Builder
fragmentSelector
(Consumer<FragmentSelector.Builder> fragmentSelector) Describes the timestamp range and timestamp origin for the range of fragments to return.fragmentSelector
(FragmentSelector fragmentSelector) Describes the timestamp range and timestamp origin for the range of fragments to return.maxResults
(Long maxResults) The total number of fragments to return.A token to specify where to start paginating.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the stream from which to retrieve a fragment list.streamName
(String streamName) The name of the stream from which to retrieve a fragment list.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.kinesisvideoarchivedmedia.model.KinesisVideoArchivedMediaRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
streamName
The name of the stream from which to retrieve a fragment list. Specify either this parameter or the
StreamARN
parameter.- Parameters:
streamName
- The name of the stream from which to retrieve a fragment list. Specify either this parameter or theStreamARN
parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamARN
The Amazon Resource Name (ARN) of the stream from which to retrieve a fragment list. Specify either this parameter or the
StreamName
parameter.- Parameters:
streamARN
- The Amazon Resource Name (ARN) of the stream from which to retrieve a fragment list. Specify either this parameter or theStreamName
parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The total number of fragments to return. If the total number of fragments available is more than the value specified in
max-results
, then a ListFragmentsOutput$NextToken is provided in the output that you can use to resume pagination.- Parameters:
maxResults
- The total number of fragments to return. If the total number of fragments available is more than the value specified inmax-results
, then a ListFragmentsOutput$NextToken is provided in the output that you can use to resume pagination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
A token to specify where to start paginating. This is the ListFragmentsOutput$NextToken from a previously truncated response.
- Parameters:
nextToken
- A token to specify where to start paginating. This is the ListFragmentsOutput$NextToken from a previously truncated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fragmentSelector
Describes the timestamp range and timestamp origin for the range of fragments to return.
This is only required when the
NextToken
isn't passed in the API.- Parameters:
fragmentSelector
- Describes the timestamp range and timestamp origin for the range of fragments to return.This is only required when the
NextToken
isn't passed in the API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fragmentSelector
default ListFragmentsRequest.Builder fragmentSelector(Consumer<FragmentSelector.Builder> fragmentSelector) Describes the timestamp range and timestamp origin for the range of fragments to return.
This is only required when the
NextToken
isn't passed in the API.FragmentSelector.Builder
avoiding the need to create one manually viaFragmentSelector.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofragmentSelector(FragmentSelector)
.- Parameters:
fragmentSelector
- a consumer that will call methods onFragmentSelector.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListFragmentsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListFragmentsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-