public class GetLabelDetectionResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GetLabelDetectionResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getJobStatus()
The current status of the label detection job.
|
java.lang.String |
getLabelModelVersion()
Version number of the label detection model that was used to detect
labels.
|
java.util.List<LabelDetection> |
getLabels()
An array of labels detected in the video.
|
java.lang.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.
|
java.lang.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(java.lang.String jobStatus)
The current status of the label detection job.
|
void |
setJobStatus(VideoJobStatus jobStatus)
The current status of the label detection job.
|
void |
setLabelModelVersion(java.lang.String labelModelVersion)
Version number of the label detection model that was used to detect
labels.
|
void |
setLabels(java.util.Collection<LabelDetection> labels)
An array of labels detected in the video.
|
void |
setNextToken(java.lang.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(java.lang.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetLabelDetectionResult |
withJobStatus(java.lang.String jobStatus)
The current status of the label detection job.
|
GetLabelDetectionResult |
withJobStatus(VideoJobStatus jobStatus)
The current status of the label detection job.
|
GetLabelDetectionResult |
withLabelModelVersion(java.lang.String labelModelVersion)
Version number of the label detection model that was used to detect
labels.
|
GetLabelDetectionResult |
withLabels(java.util.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(java.lang.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(java.lang.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.
|
public java.lang.String getJobStatus()
The current status of the label detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
The current status of the label detection job.
VideoJobStatus
public void setJobStatus(java.lang.String jobStatus)
The current status of the label detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- The current status of the label detection job.
VideoJobStatus
public GetLabelDetectionResult withJobStatus(java.lang.String jobStatus)
The current status of the label detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- The current status of the label detection job.
VideoJobStatus
public void setJobStatus(VideoJobStatus jobStatus)
The current status of the label detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- The current status of the label detection job.
VideoJobStatus
public GetLabelDetectionResult withJobStatus(VideoJobStatus jobStatus)
The current status of the label detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- The current status of the label detection job.
VideoJobStatus
public java.lang.String getStatusMessage()
If the job fails, StatusMessage
provides a descriptive error
message.
If the job fails, StatusMessage
provides a
descriptive error message.
public void setStatusMessage(java.lang.String statusMessage)
If the job fails, StatusMessage
provides a descriptive error
message.
statusMessage
-
If the job fails, StatusMessage
provides a
descriptive error message.
public GetLabelDetectionResult withStatusMessage(java.lang.String statusMessage)
If the job fails, StatusMessage
provides a descriptive error
message.
Returns a reference to this object so that method calls can be chained together.
statusMessage
-
If the job fails, StatusMessage
provides a
descriptive error message.
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.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.
Constraints:
Length: - 255
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 void setNextToken(java.lang.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.
Constraints:
Length: - 255
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 GetLabelDetectionResult withNextToken(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 255
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 java.util.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.
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(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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(java.util.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String getLabelModelVersion()
Version number of the label detection model that was used to detect labels.
Version number of the label detection model that was used to detect labels.
public void setLabelModelVersion(java.lang.String labelModelVersion)
Version number of the label detection model that was used to detect labels.
labelModelVersion
- Version number of the label detection model that was used to detect labels.
public GetLabelDetectionResult withLabelModelVersion(java.lang.String labelModelVersion)
Version number of the label detection model that was used to detect labels.
Returns a reference to this object so that method calls can be chained together.
labelModelVersion
- Version number of the label detection model that was used to detect labels.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.