@Generated(value="software.amazon.awssdk:codegen") public final class GetSegmentDetectionResponse extends RekognitionResponse implements ToCopyableBuilder<GetSegmentDetectionResponse.Builder,GetSegmentDetectionResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetSegmentDetectionResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<AudioMetadata> |
audioMetadata()
An array of objects.
|
static GetSegmentDetectionResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAudioMetadata()
Returns true if the AudioMetadata property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasSegments()
Returns true if the Segments property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasSelectedSegmentTypes()
Returns true if the SelectedSegmentTypes property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasVideoMetadata()
Returns true if the VideoMetadata property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
VideoJobStatus |
jobStatus()
Current status of the segment detection job.
|
String |
jobStatusAsString()
Current status of the segment detection job.
|
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.
|
List<SdkField<?>> |
sdkFields() |
List<SegmentDetection> |
segments()
An array of segments detected in a video.
|
List<SegmentTypeInfo> |
selectedSegmentTypes()
An array containing the segment types requested in the call to
StartSegmentDetection. |
static Class<? extends GetSegmentDetectionResponse.Builder> |
serializableBuilderClass() |
String |
statusMessage()
If the job fails,
StatusMessage provides a descriptive error message. |
GetSegmentDetectionResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<VideoMetadata> |
videoMetadata()
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata array. |
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic VideoJobStatus jobStatus()
Current status of the segment detection job.
If the service returns an enum value that is not available in the current SDK version, jobStatus will
return VideoJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
jobStatusAsString().
VideoJobStatuspublic String jobStatusAsString()
Current status of the segment detection job.
If the service returns an enum value that is not available in the current SDK version, jobStatus will
return VideoJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
jobStatusAsString().
VideoJobStatuspublic String statusMessage()
If the job fails, StatusMessage provides a descriptive error message.
StatusMessage provides a descriptive error message.public boolean hasVideoMetadata()
public List<VideoMetadata> 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. The
VideoMetadata object includes the video codec, video format and other information. Video metadata is
returned in each page of information returned by GetSegmentDetection.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasVideoMetadata() to see if a value was sent in this field.
VideoMetadata array. The
object contains information about the video stream in the input file that Amazon Rekognition Video chose
to analyze. The VideoMetadata object includes the video codec, video format and other
information. Video metadata is returned in each page of information returned by
GetSegmentDetection.public boolean hasAudioMetadata()
public List<AudioMetadata> audioMetadata()
An array of objects. There can be multiple audio streams. Each AudioMetadata object contains
metadata for a single audio stream. Audio information in an AudioMetadata 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 by GetSegmentDetection.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAudioMetadata() to see if a value was sent in this field.
AudioMetadata object contains
metadata for a single audio stream. Audio information in an AudioMetadata 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 by GetSegmentDetection.public 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.
public boolean hasSegments()
public List<SegmentDetection> segments()
An array of segments detected in a video.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSegments() to see if a value was sent in this field.
public boolean hasSelectedSegmentTypes()
public List<SegmentTypeInfo> selectedSegmentTypes()
An array containing the segment types requested in the call to StartSegmentDetection.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSelectedSegmentTypes() to see if a value was sent in this field.
StartSegmentDetection.public GetSegmentDetectionResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetSegmentDetectionResponse.Builder,GetSegmentDetectionResponse>toBuilder in class AwsResponsepublic static GetSegmentDetectionResponse.Builder builder()
public static Class<? extends GetSegmentDetectionResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsResponsepublic boolean equals(Object obj)
equals in class AwsResponsepublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2020. All rights reserved.