@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetTextDetectionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetTextDetectionResult() |
Modifier and Type | Method and Description |
---|---|
GetTextDetectionResult |
clone() |
boolean |
equals(Object obj) |
String |
getJobStatus()
Current status of the text detection job.
|
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 text.
|
String |
getStatusMessage()
If the job fails,
StatusMessage provides a descriptive error message. |
List<TextDetectionResult> |
getTextDetections()
An array of text detected in the video.
|
String |
getTextModelVersion()
Version number of the text detection model that was used to detect text.
|
VideoMetadata |
getVideoMetadata() |
int |
hashCode() |
void |
setJobStatus(String jobStatus)
Current status of the text detection job.
|
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 text.
|
void |
setStatusMessage(String statusMessage)
If the job fails,
StatusMessage provides a descriptive error message. |
void |
setTextDetections(Collection<TextDetectionResult> textDetections)
An array of text detected in the video.
|
void |
setTextModelVersion(String textModelVersion)
Version number of the text detection model that was used to detect text.
|
void |
setVideoMetadata(VideoMetadata videoMetadata) |
String |
toString()
Returns a string representation of this object.
|
GetTextDetectionResult |
withJobStatus(String jobStatus)
Current status of the text detection job.
|
GetTextDetectionResult |
withJobStatus(VideoJobStatus jobStatus)
Current status of the text detection job.
|
GetTextDetectionResult |
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 text.
|
GetTextDetectionResult |
withStatusMessage(String statusMessage)
If the job fails,
StatusMessage provides a descriptive error message. |
GetTextDetectionResult |
withTextDetections(Collection<TextDetectionResult> textDetections)
An array of text detected in the video.
|
GetTextDetectionResult |
withTextDetections(TextDetectionResult... textDetections)
An array of text detected in the video.
|
GetTextDetectionResult |
withTextModelVersion(String textModelVersion)
Version number of the text detection model that was used to detect text.
|
GetTextDetectionResult |
withVideoMetadata(VideoMetadata videoMetadata) |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setJobStatus(String jobStatus)
Current status of the text detection job.
jobStatus
- Current status of the text detection job.VideoJobStatus
public String getJobStatus()
Current status of the text detection job.
VideoJobStatus
public GetTextDetectionResult withJobStatus(String jobStatus)
Current status of the text detection job.
jobStatus
- Current status of the text detection job.VideoJobStatus
public GetTextDetectionResult withJobStatus(VideoJobStatus jobStatus)
Current status of the text detection job.
jobStatus
- Current status of the text 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 GetTextDetectionResult 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)
videoMetadata
- public VideoMetadata getVideoMetadata()
public GetTextDetectionResult withVideoMetadata(VideoMetadata videoMetadata)
videoMetadata
- public List<TextDetectionResult> getTextDetections()
An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
public void setTextDetections(Collection<TextDetectionResult> textDetections)
An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
textDetections
- An array of text detected in the video. Each element contains the detected text, the time in milliseconds
from the start of the video that the text was detected, and where it was detected on the screen.public GetTextDetectionResult withTextDetections(TextDetectionResult... textDetections)
An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
NOTE: This method appends the values to the existing list (if any). Use
setTextDetections(java.util.Collection)
or withTextDetections(java.util.Collection)
if you want
to override the existing values.
textDetections
- An array of text detected in the video. Each element contains the detected text, the time in milliseconds
from the start of the video that the text was detected, and where it was detected on the screen.public GetTextDetectionResult withTextDetections(Collection<TextDetectionResult> textDetections)
An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
textDetections
- An array of text detected in the video. Each element contains the detected text, the time in milliseconds
from the start of the video that the text was detected, and where it was detected on the screen.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 text.
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 text.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 text.
public GetTextDetectionResult 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 text.
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 text.public void setTextModelVersion(String textModelVersion)
Version number of the text detection model that was used to detect text.
textModelVersion
- Version number of the text detection model that was used to detect text.public String getTextModelVersion()
Version number of the text detection model that was used to detect text.
public GetTextDetectionResult withTextModelVersion(String textModelVersion)
Version number of the text detection model that was used to detect text.
textModelVersion
- Version number of the text detection model that was used to detect text.public String toString()
toString
in class Object
Object.toString()
public GetTextDetectionResult clone()