public class LabelDetection
extends java.lang.Object
implements java.io.Serializable
Information about a label detected in a video analysis request and the time the label was detected in the video.
Constructor and Description |
---|
LabelDetection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Label |
getLabel()
Details about the detected label.
|
java.lang.Long |
getTimestamp()
Time, in milliseconds from the start of the video, that the label was
detected.
|
int |
hashCode() |
void |
setLabel(Label label)
Details about the detected label.
|
void |
setTimestamp(java.lang.Long timestamp)
Time, in milliseconds from the start of the video, that the label was
detected.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LabelDetection |
withLabel(Label label)
Details about the detected label.
|
LabelDetection |
withTimestamp(java.lang.Long timestamp)
Time, in milliseconds from the start of the video, that the label was
detected.
|
public java.lang.Long getTimestamp()
Time, in milliseconds from the start of the video, that the label was detected.
Time, in milliseconds from the start of the video, that the label was detected.
public void setTimestamp(java.lang.Long timestamp)
Time, in milliseconds from the start of the video, that the label was detected.
timestamp
- Time, in milliseconds from the start of the video, that the label was detected.
public LabelDetection withTimestamp(java.lang.Long timestamp)
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.
timestamp
- Time, in milliseconds from the start of the video, that the label was detected.
public Label getLabel()
Details about the detected label.
Details about the detected label.
public void setLabel(Label label)
Details about the detected label.
label
- Details about the detected label.
public LabelDetection withLabel(Label label)
Details about the detected label.
Returns a reference to this object so that method calls can be chained together.
label
- Details about the detected label.
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.