Interface GetSegmentDetectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSegmentDetectionResponse.Builder,
,GetSegmentDetectionResponse> RekognitionResponse.Builder
,SdkBuilder<GetSegmentDetectionResponse.Builder,
,GetSegmentDetectionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetSegmentDetectionResponse
-
Method Summary
Modifier and TypeMethodDescriptionaudioMetadata
(Collection<AudioMetadata> audioMetadata) An array of objects.audioMetadata
(Consumer<AudioMetadata.Builder>... audioMetadata) An array of objects.audioMetadata
(AudioMetadata... audioMetadata) An array of objects.Job identifier for the segment detection operation for which you want to obtain results.Current status of the segment detection job.jobStatus
(VideoJobStatus jobStatus) Current status of the segment detection job.A job identifier specified in the call to StartSegmentDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response.segments
(Collection<SegmentDetection> segments) An array of segments detected in a video.segments
(Consumer<SegmentDetection.Builder>... segments) An array of segments detected in a video.segments
(SegmentDetection... segments) An array of segments detected in a video.selectedSegmentTypes
(Collection<SegmentTypeInfo> selectedSegmentTypes) An array containing the segment types requested in the call toStartSegmentDetection
.selectedSegmentTypes
(Consumer<SegmentTypeInfo.Builder>... selectedSegmentTypes) An array containing the segment types requested in the call toStartSegmentDetection
.selectedSegmentTypes
(SegmentTypeInfo... selectedSegmentTypes) An array containing the segment types requested in the call toStartSegmentDetection
.statusMessage
(String statusMessage) If the job fails,StatusMessage
provides a descriptive error message.video
(Consumer<Video.Builder> video) Sets the value of the Video property for this object.Sets the value of the Video property for this object.videoMetadata
(Collection<VideoMetadata> videoMetadata) Currently, Amazon Rekognition Video returns a single object in theVideoMetadata
array.videoMetadata
(Consumer<VideoMetadata.Builder>... videoMetadata) Currently, Amazon Rekognition Video returns a single object in theVideoMetadata
array.videoMetadata
(VideoMetadata... videoMetadata) Currently, Amazon Rekognition Video returns a single object in theVideoMetadata
array.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.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
-
jobStatus
Current status of the segment detection job.
- Parameters:
jobStatus
- Current status of the segment detection job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobStatus
Current status of the segment detection job.
- Parameters:
jobStatus
- Current status of the segment detection job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusMessage
If the job fails,
StatusMessage
provides a descriptive error message.- Parameters:
statusMessage
- If the job fails,StatusMessage
provides a descriptive error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
videoMetadata
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata
array. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadata
object includes the video codec, video format and other information. Video metadata is returned in each page of information returned byGetSegmentDetection
.- Parameters:
videoMetadata
- Currently, Amazon Rekognition Video returns a single object in theVideoMetadata
array. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadata
object includes the video codec, video format and other information. Video metadata is returned in each page of information returned byGetSegmentDetection
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
videoMetadata
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata
array. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadata
object includes the video codec, video format and other information. Video metadata is returned in each page of information returned byGetSegmentDetection
.- Parameters:
videoMetadata
- Currently, Amazon Rekognition Video returns a single object in theVideoMetadata
array. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadata
object includes the video codec, video format and other information. Video metadata is returned in each page of information returned byGetSegmentDetection
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
videoMetadata
Currently, Amazon Rekognition Video returns a single object in the
This is a convenience method that creates an instance of theVideoMetadata
array. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadata
object includes the video codec, video format and other information. Video metadata is returned in each page of information returned byGetSegmentDetection
.VideoMetadata.Builder
avoiding the need to create one manually viaVideoMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovideoMetadata(List<VideoMetadata>)
.- Parameters:
videoMetadata
- a consumer that will call methods onVideoMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
audioMetadata
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a single audio stream. Audio information in anAudioMetadata
objects includes the audio codec, the number of audio channels, the duration of the audio stream, and the sample rate. Audio metadata is returned in each page of information returned byGetSegmentDetection
.- Parameters:
audioMetadata
- An array of objects. There can be multiple audio streams. EachAudioMetadata
object contains metadata for a single audio stream. Audio information in anAudioMetadata
objects includes the audio codec, the number of audio channels, the duration of the audio stream, and the sample rate. Audio metadata is returned in each page of information returned byGetSegmentDetection
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audioMetadata
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a single audio stream. Audio information in anAudioMetadata
objects includes the audio codec, the number of audio channels, the duration of the audio stream, and the sample rate. Audio metadata is returned in each page of information returned byGetSegmentDetection
.- Parameters:
audioMetadata
- An array of objects. There can be multiple audio streams. EachAudioMetadata
object contains metadata for a single audio stream. Audio information in anAudioMetadata
objects includes the audio codec, the number of audio channels, the duration of the audio stream, and the sample rate. Audio metadata is returned in each page of information returned byGetSegmentDetection
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audioMetadata
An array of objects. There can be multiple audio streams. Each
This is a convenience method that creates an instance of theAudioMetadata
object contains metadata for a single audio stream. Audio information in anAudioMetadata
objects includes the audio codec, the number of audio channels, the duration of the audio stream, and the sample rate. Audio metadata is returned in each page of information returned byGetSegmentDetection
.AudioMetadata.Builder
avoiding the need to create one manually viaAudioMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaudioMetadata(List<AudioMetadata>)
.- Parameters:
audioMetadata
- a consumer that will call methods onAudioMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
- Parameters:
nextToken
- If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter ofStartSegmentDetection
. Within each segment type the array is sorted by timestamp values.- Parameters:
segments
- An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in theSegmentTypes
input parameter ofStartSegmentDetection
. Within each segment type the array is sorted by timestamp values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter ofStartSegmentDetection
. Within each segment type the array is sorted by timestamp values.- Parameters:
segments
- An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in theSegmentTypes
input parameter ofStartSegmentDetection
. Within each segment type the array is sorted by timestamp values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in the
This is a convenience method that creates an instance of theSegmentTypes
input parameter ofStartSegmentDetection
. Within each segment type the array is sorted by timestamp values.SegmentDetection.Builder
avoiding the need to create one manually viaSegmentDetection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosegments(List<SegmentDetection>)
.- Parameters:
segments
- a consumer that will call methods onSegmentDetection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectedSegmentTypes
GetSegmentDetectionResponse.Builder selectedSegmentTypes(Collection<SegmentTypeInfo> selectedSegmentTypes) An array containing the segment types requested in the call to
StartSegmentDetection
.- Parameters:
selectedSegmentTypes
- An array containing the segment types requested in the call toStartSegmentDetection
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedSegmentTypes
An array containing the segment types requested in the call to
StartSegmentDetection
.- Parameters:
selectedSegmentTypes
- An array containing the segment types requested in the call toStartSegmentDetection
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedSegmentTypes
GetSegmentDetectionResponse.Builder selectedSegmentTypes(Consumer<SegmentTypeInfo.Builder>... selectedSegmentTypes) An array containing the segment types requested in the call to
This is a convenience method that creates an instance of theStartSegmentDetection
.SegmentTypeInfo.Builder
avoiding the need to create one manually viaSegmentTypeInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toselectedSegmentTypes(List<SegmentTypeInfo>)
.- Parameters:
selectedSegmentTypes
- a consumer that will call methods onSegmentTypeInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobId
Job identifier for the segment detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartSegmentDetection.
- Parameters:
jobId
- Job identifier for the segment detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartSegmentDetection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
video
Sets the value of the Video property for this object.- Parameters:
video
- The new value for the Video property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
video
Sets the value of the Video property for this object. This is a convenience method that creates an instance of theVideo.Builder
avoiding the need to create one manually viaVideo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovideo(Video)
.- Parameters:
video
- a consumer that will call methods onVideo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobTag
A job identifier specified in the call to StartSegmentDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.
- Parameters:
jobTag
- A job identifier specified in the call to StartSegmentDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-