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.BuilderfragmentSelector(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kinesisvideoarchivedmedia.model.KinesisVideoArchivedMediaRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
streamName
The name of the stream from which to retrieve a fragment list. Specify either this parameter or the
StreamARNparameter.- Parameters:
streamName- The name of the stream from which to retrieve a fragment list. Specify either this parameter or theStreamARNparameter.- 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
StreamNameparameter.- Parameters:
streamARN- The Amazon Resource Name (ARN) of the stream from which to retrieve a fragment list. Specify either this parameter or theStreamNameparameter.- 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
NextTokenisn'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
NextTokenisn'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 a convenience method that creates an instance of theThis is only required when the
NextTokenisn't passed in the API.FragmentSelector.Builderavoiding the need to create one manually viaFragmentSelector.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-