public class GetFaceDetectionResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GetFaceDetectionResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<FaceDetection> |
getFaces()
An array of faces detected in the video.
|
java.lang.String |
getJobStatus()
The current status of the face detection job.
|
java.lang.String |
getNextToken()
If the response is truncated, Amazon Rekognition returns this token that
you can use in the subsequent request to retrieve the next set of faces.
|
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 |
setFaces(java.util.Collection<FaceDetection> faces)
An array of faces detected in the video.
|
void |
setJobStatus(java.lang.String jobStatus)
The current status of the face detection job.
|
void |
setJobStatus(VideoJobStatus jobStatus)
The current status of the face detection job.
|
void |
setNextToken(java.lang.String nextToken)
If the response is truncated, Amazon Rekognition returns this token that
you can use in the subsequent request to retrieve the next set of faces.
|
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.
|
GetFaceDetectionResult |
withFaces(java.util.Collection<FaceDetection> faces)
An array of faces detected in the video.
|
GetFaceDetectionResult |
withFaces(FaceDetection... faces)
An array of faces detected in the video.
|
GetFaceDetectionResult |
withJobStatus(java.lang.String jobStatus)
The current status of the face detection job.
|
GetFaceDetectionResult |
withJobStatus(VideoJobStatus jobStatus)
The current status of the face detection job.
|
GetFaceDetectionResult |
withNextToken(java.lang.String nextToken)
If the response is truncated, Amazon Rekognition returns this token that
you can use in the subsequent request to retrieve the next set of faces.
|
GetFaceDetectionResult |
withStatusMessage(java.lang.String statusMessage)
If the job fails,
StatusMessage provides a descriptive error
message. |
GetFaceDetectionResult |
withVideoMetadata(VideoMetadata videoMetadata)
Information about a video that Amazon Rekognition Video analyzed.
|
public java.lang.String getJobStatus()
The current status of the face detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
The current status of the face detection job.
VideoJobStatus
public void setJobStatus(java.lang.String jobStatus)
The current status of the face detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- The current status of the face detection job.
VideoJobStatus
public GetFaceDetectionResult withJobStatus(java.lang.String jobStatus)
The current status of the face 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 face detection job.
VideoJobStatus
public void setJobStatus(VideoJobStatus jobStatus)
The current status of the face detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- The current status of the face detection job.
VideoJobStatus
public GetFaceDetectionResult withJobStatus(VideoJobStatus jobStatus)
The current status of the face 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 face 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 GetFaceDetectionResult 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 GetFaceDetectionResult 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 returns this token that you can use in the subsequent request to retrieve the next set of faces.
Constraints:
Length: - 255
If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.
public void setNextToken(java.lang.String nextToken)
If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.
Constraints:
Length: - 255
nextToken
- If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.
public GetFaceDetectionResult withNextToken(java.lang.String nextToken)
If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.
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 returns this token that you can use in the subsequent request to retrieve the next set of faces.
public java.util.List<FaceDetection> getFaces()
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
public void setFaces(java.util.Collection<FaceDetection> faces)
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
faces
- An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
public GetFaceDetectionResult withFaces(FaceDetection... faces)
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
Returns a reference to this object so that method calls can be chained together.
faces
- An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
public GetFaceDetectionResult withFaces(java.util.Collection<FaceDetection> faces)
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
Returns a reference to this object so that method calls can be chained together.
faces
- An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
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.