@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetLabelDetectionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetLabelDetectionResult() |
Modifier and Type | Method and Description |
---|---|
GetLabelDetectionResult |
clone() |
boolean |
equals(Object obj) |
String |
getJobStatus()
The current status of the label detection job.
|
List<LabelDetection> |
getLabels()
An array of labels detected in the video.
|
String |
getNextToken()
If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent
request to retrieve the next set of labels.
|
String |
getStatusMessage()
If the job fails,
StatusMessage provides a descriptive error message. |
VideoMetadata |
getVideoMetadata()
Information about a video that Amazon Rekognition Video analyzed.
|
int |
hashCode() |
void |
setJobStatus(String jobStatus)
The current status of the label detection job.
|
void |
setLabels(Collection<LabelDetection> labels)
An array of labels detected in the video.
|
void |
setNextToken(String nextToken)
If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent
request to retrieve the next set of labels.
|
void |
setStatusMessage(String statusMessage)
If the job fails,
StatusMessage provides a descriptive error message. |
void |
setVideoMetadata(VideoMetadata videoMetadata)
Information about a video that Amazon Rekognition Video analyzed.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetLabelDetectionResult |
withJobStatus(String jobStatus)
The current status of the label detection job.
|
GetLabelDetectionResult |
withJobStatus(VideoJobStatus jobStatus)
The current status of the label detection job.
|
GetLabelDetectionResult |
withLabels(Collection<LabelDetection> labels)
An array of labels detected in the video.
|
GetLabelDetectionResult |
withLabels(LabelDetection... labels)
An array of labels detected in the video.
|
GetLabelDetectionResult |
withNextToken(String nextToken)
If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent
request to retrieve the next set of labels.
|
GetLabelDetectionResult |
withStatusMessage(String statusMessage)
If the job fails,
StatusMessage provides a descriptive error message. |
GetLabelDetectionResult |
withVideoMetadata(VideoMetadata videoMetadata)
Information about a video that Amazon Rekognition Video analyzed.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setJobStatus(String jobStatus)
The current status of the label detection job.
jobStatus
- The current status of the label detection job.VideoJobStatus
public String getJobStatus()
The current status of the label detection job.
VideoJobStatus
public GetLabelDetectionResult withJobStatus(String jobStatus)
The current status of the label detection job.
jobStatus
- The current status of the label detection job.VideoJobStatus
public GetLabelDetectionResult withJobStatus(VideoJobStatus jobStatus)
The current status of the label detection job.
jobStatus
- The current status of the label detection job.VideoJobStatus
public void setStatusMessage(String statusMessage)
If the job fails, StatusMessage
provides a descriptive error message.
statusMessage
- If the job fails, StatusMessage
provides a descriptive error message.public String getStatusMessage()
If the job fails, StatusMessage
provides a descriptive error message.
StatusMessage
provides a descriptive error message.public GetLabelDetectionResult withStatusMessage(String statusMessage)
If the job fails, StatusMessage
provides a descriptive error message.
statusMessage
- If the job fails, StatusMessage
provides a descriptive error message.public void setVideoMetadata(VideoMetadata videoMetadata)
Information about a video that Amazon Rekognition Video analyzed. Videometadata
is returned in every
page of paginated responses from a Amazon Rekognition video operation.
videoMetadata
- Information about a video that Amazon Rekognition Video analyzed. Videometadata
is returned
in every page of paginated responses from a Amazon Rekognition video operation.public VideoMetadata getVideoMetadata()
Information about a video that Amazon Rekognition Video analyzed. Videometadata
is returned in every
page of paginated responses from a Amazon Rekognition video operation.
Videometadata
is returned
in every page of paginated responses from a Amazon Rekognition video operation.public GetLabelDetectionResult withVideoMetadata(VideoMetadata videoMetadata)
Information about a video that Amazon Rekognition Video analyzed. Videometadata
is returned in every
page of paginated responses from a Amazon Rekognition video operation.
videoMetadata
- Information about a video that Amazon Rekognition Video analyzed. Videometadata
is returned
in every page of paginated responses from a Amazon Rekognition video operation.public void setNextToken(String nextToken)
If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of labels.
nextToken
- If the response is truncated, Amazon Rekognition Video returns this token that you can use in the
subsequent request to retrieve the next set of labels.public String getNextToken()
If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of labels.
public GetLabelDetectionResult withNextToken(String nextToken)
If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of labels.
nextToken
- If the response is truncated, Amazon Rekognition Video returns this token that you can use in the
subsequent request to retrieve the next set of labels.public List<LabelDetection> getLabels()
An array of labels detected in the video. Each element contains the detected label and the time, in milliseconds from the start of the video, that the label was detected.
public void setLabels(Collection<LabelDetection> labels)
An array of labels detected in the video. Each element contains the detected label and the time, in milliseconds from the start of the video, that the label was detected.
labels
- An array of labels detected in the video. Each element contains the detected label and the time, in
milliseconds from the start of the video, that the label was detected.public GetLabelDetectionResult withLabels(LabelDetection... labels)
An array of labels detected in the video. Each element contains the detected label and the time, in milliseconds from the start of the video, that the label was detected.
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection)
or withLabels(java.util.Collection)
if you want to override the
existing values.
labels
- An array of labels detected in the video. Each element contains the detected label and the time, in
milliseconds from the start of the video, that the label was detected.public GetLabelDetectionResult withLabels(Collection<LabelDetection> labels)
An array of labels detected in the video. Each element contains the detected label and the time, in milliseconds from the start of the video, that the label was detected.
labels
- An array of labels detected in the video. Each element contains the detected label and the time, in
milliseconds from the start of the video, that the label was detected.public String toString()
toString
in class Object
Object.toString()
public GetLabelDetectionResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.