Interface GetSegmentDetectionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSegmentDetectionResponse.Builder,GetSegmentDetectionResponse>,RekognitionResponse.Builder,SdkBuilder<GetSegmentDetectionResponse.Builder,GetSegmentDetectionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetSegmentDetectionResponse
public static interface GetSegmentDetectionResponse.Builder extends RekognitionResponse.Builder, SdkPojo, CopyableBuilder<GetSegmentDetectionResponse.Builder,GetSegmentDetectionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetSegmentDetectionResponse.BuilderaudioMetadata(Collection<AudioMetadata> audioMetadata)An array of objects.GetSegmentDetectionResponse.BuilderaudioMetadata(Consumer<AudioMetadata.Builder>... audioMetadata)An array of objects.GetSegmentDetectionResponse.BuilderaudioMetadata(AudioMetadata... audioMetadata)An array of objects.GetSegmentDetectionResponse.BuilderjobId(String jobId)Job identifier for the segment detection operation for which you want to obtain results.GetSegmentDetectionResponse.BuilderjobStatus(String jobStatus)Current status of the segment detection job.GetSegmentDetectionResponse.BuilderjobStatus(VideoJobStatus jobStatus)Current status of the segment detection job.GetSegmentDetectionResponse.BuilderjobTag(String 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.GetSegmentDetectionResponse.BuildernextToken(String nextToken)If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response.GetSegmentDetectionResponse.Buildersegments(Collection<SegmentDetection> segments)An array of segments detected in a video.GetSegmentDetectionResponse.Buildersegments(Consumer<SegmentDetection.Builder>... segments)An array of segments detected in a video.GetSegmentDetectionResponse.Buildersegments(SegmentDetection... segments)An array of segments detected in a video.GetSegmentDetectionResponse.BuilderselectedSegmentTypes(Collection<SegmentTypeInfo> selectedSegmentTypes)An array containing the segment types requested in the call toStartSegmentDetection.GetSegmentDetectionResponse.BuilderselectedSegmentTypes(Consumer<SegmentTypeInfo.Builder>... selectedSegmentTypes)An array containing the segment types requested in the call toStartSegmentDetection.GetSegmentDetectionResponse.BuilderselectedSegmentTypes(SegmentTypeInfo... selectedSegmentTypes)An array containing the segment types requested in the call toStartSegmentDetection.GetSegmentDetectionResponse.BuilderstatusMessage(String statusMessage)If the job fails,StatusMessageprovides a descriptive error message.default GetSegmentDetectionResponse.Buildervideo(Consumer<Video.Builder> video)Sets the value of the Video property for this object.GetSegmentDetectionResponse.Buildervideo(Video video)Sets the value of the Video property for this object.GetSegmentDetectionResponse.BuildervideoMetadata(Collection<VideoMetadata> videoMetadata)Currently, Amazon Rekognition Video returns a single object in theVideoMetadataarray.GetSegmentDetectionResponse.BuildervideoMetadata(Consumer<VideoMetadata.Builder>... videoMetadata)Currently, Amazon Rekognition Video returns a single object in theVideoMetadataarray.GetSegmentDetectionResponse.BuildervideoMetadata(VideoMetadata... videoMetadata)Currently, Amazon Rekognition Video returns a single object in theVideoMetadataarray.-
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 Detail
-
jobStatus
GetSegmentDetectionResponse.Builder jobStatus(String 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:
VideoJobStatus,VideoJobStatus
-
jobStatus
GetSegmentDetectionResponse.Builder jobStatus(VideoJobStatus 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:
VideoJobStatus,VideoJobStatus
-
statusMessage
GetSegmentDetectionResponse.Builder statusMessage(String statusMessage)
If the job fails,
StatusMessageprovides a descriptive error message.- Parameters:
statusMessage- If the job fails,StatusMessageprovides a descriptive error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
videoMetadata
GetSegmentDetectionResponse.Builder videoMetadata(Collection<VideoMetadata> videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadataarray. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadataobject 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 theVideoMetadataarray. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadataobject 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
GetSegmentDetectionResponse.Builder videoMetadata(VideoMetadata... videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadataarray. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadataobject 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 theVideoMetadataarray. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadataobject 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
GetSegmentDetectionResponse.Builder videoMetadata(Consumer<VideoMetadata.Builder>... videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
This is a convenience method that creates an instance of theVideoMetadataarray. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. TheVideoMetadataobject includes the video codec, video format and other information. Video metadata is returned in each page of information returned byGetSegmentDetection.VideoMetadata.Builderavoiding the need to create one manually viaVideoMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#videoMetadata(List.) - 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:
#videoMetadata(java.util.Collection)
-
audioMetadata
GetSegmentDetectionResponse.Builder audioMetadata(Collection<AudioMetadata> audioMetadata)
An array of objects. There can be multiple audio streams. Each
AudioMetadataobject contains metadata for a single audio stream. Audio information in anAudioMetadataobjects 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. EachAudioMetadataobject contains metadata for a single audio stream. Audio information in anAudioMetadataobjects 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
GetSegmentDetectionResponse.Builder audioMetadata(AudioMetadata... audioMetadata)
An array of objects. There can be multiple audio streams. Each
AudioMetadataobject contains metadata for a single audio stream. Audio information in anAudioMetadataobjects 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. EachAudioMetadataobject contains metadata for a single audio stream. Audio information in anAudioMetadataobjects 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
GetSegmentDetectionResponse.Builder audioMetadata(Consumer<AudioMetadata.Builder>... audioMetadata)
An array of objects. There can be multiple audio streams. Each
This is a convenience method that creates an instance of theAudioMetadataobject contains metadata for a single audio stream. Audio information in anAudioMetadataobjects 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.Builderavoiding the need to create one manually viaAudioMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#audioMetadata(List.) - 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:
#audioMetadata(java.util.Collection)
-
nextToken
GetSegmentDetectionResponse.Builder nextToken(String 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
GetSegmentDetectionResponse.Builder segments(Collection<SegmentDetection> segments)
An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypesinput 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 theSegmentTypesinput 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
GetSegmentDetectionResponse.Builder segments(SegmentDetection... segments)
An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypesinput 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 theSegmentTypesinput 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
GetSegmentDetectionResponse.Builder segments(Consumer<SegmentDetection.Builder>... 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 theSegmentTypesinput parameter ofStartSegmentDetection. Within each segment type the array is sorted by timestamp values.SegmentDetection.Builderavoiding the need to create one manually viaSegmentDetection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#segments(List.) - 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:
#segments(java.util.Collection)
-
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
GetSegmentDetectionResponse.Builder selectedSegmentTypes(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
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.Builderavoiding the need to create one manually viaSegmentTypeInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#selectedSegmentTypes(List.) - 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:
#selectedSegmentTypes(java.util.Collection)
-
jobId
GetSegmentDetectionResponse.Builder jobId(String 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
GetSegmentDetectionResponse.Builder video(Video 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
default GetSegmentDetectionResponse.Builder video(Consumer<Video.Builder> video)
Sets the value of the Video property for this object. This is a convenience method that creates an instance of theVideo.Builderavoiding the need to create one manually viaVideo.builder().When the
Consumercompletes,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:
video(Video)
-
jobTag
GetSegmentDetectionResponse.Builder jobTag(String 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.
-
-