public class SegmentDetection
extends java.lang.Object
implements java.io.Serializable
A technical cue or shot detection segment detected in a video. An array of
SegmentDetection
objects containing all segments detected in a
stored video is returned by GetSegmentDetection.
Constructor and Description |
---|
SegmentDetection() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getDurationMillis()
The duration of the detected segment in milliseconds.
|
java.lang.String |
getDurationSMPTE()
The duration of the timecode for the detected segment in SMPTE format.
|
java.lang.String |
getEndTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the end
of a detected segment.
|
java.lang.Long |
getEndTimestampMillis()
The end time of the detected segment, in milliseconds, from the start of
the video.
|
ShotSegment |
getShotSegment()
If the segment is a shot detection, contains information about the shot
detection.
|
java.lang.String |
getStartTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the
start of a detected segment.
|
java.lang.Long |
getStartTimestampMillis()
The start time of the detected segment in milliseconds from the start of
the video.
|
TechnicalCueSegment |
getTechnicalCueSegment()
If the segment is a technical cue, contains information about the
technical cue.
|
java.lang.String |
getType()
The type of the segment.
|
int |
hashCode() |
void |
setDurationMillis(java.lang.Long durationMillis)
The duration of the detected segment in milliseconds.
|
void |
setDurationSMPTE(java.lang.String durationSMPTE)
The duration of the timecode for the detected segment in SMPTE format.
|
void |
setEndTimecodeSMPTE(java.lang.String endTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the end
of a detected segment.
|
void |
setEndTimestampMillis(java.lang.Long endTimestampMillis)
The end time of the detected segment, in milliseconds, from the start of
the video.
|
void |
setShotSegment(ShotSegment shotSegment)
If the segment is a shot detection, contains information about the shot
detection.
|
void |
setStartTimecodeSMPTE(java.lang.String startTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the
start of a detected segment.
|
void |
setStartTimestampMillis(java.lang.Long startTimestampMillis)
The start time of the detected segment in milliseconds from the start of
the video.
|
void |
setTechnicalCueSegment(TechnicalCueSegment technicalCueSegment)
If the segment is a technical cue, contains information about the
technical cue.
|
void |
setType(SegmentType type)
The type of the segment.
|
void |
setType(java.lang.String type)
The type of the segment.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SegmentDetection |
withDurationMillis(java.lang.Long durationMillis)
The duration of the detected segment in milliseconds.
|
SegmentDetection |
withDurationSMPTE(java.lang.String durationSMPTE)
The duration of the timecode for the detected segment in SMPTE format.
|
SegmentDetection |
withEndTimecodeSMPTE(java.lang.String endTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the end
of a detected segment.
|
SegmentDetection |
withEndTimestampMillis(java.lang.Long endTimestampMillis)
The end time of the detected segment, in milliseconds, from the start of
the video.
|
SegmentDetection |
withShotSegment(ShotSegment shotSegment)
If the segment is a shot detection, contains information about the shot
detection.
|
SegmentDetection |
withStartTimecodeSMPTE(java.lang.String startTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the
start of a detected segment.
|
SegmentDetection |
withStartTimestampMillis(java.lang.Long startTimestampMillis)
The start time of the detected segment in milliseconds from the start of
the video.
|
SegmentDetection |
withTechnicalCueSegment(TechnicalCueSegment technicalCueSegment)
If the segment is a technical cue, contains information about the
technical cue.
|
SegmentDetection |
withType(SegmentType type)
The type of the segment.
|
SegmentDetection |
withType(java.lang.String type)
The type of the segment.
|
public java.lang.String getType()
The type of the segment. Valid values are TECHNICAL_CUE
and
SHOT
.
Constraints:
Allowed Values: TECHNICAL_CUE, SHOT
The type of the segment. Valid values are
TECHNICAL_CUE
and SHOT
.
SegmentType
public void setType(java.lang.String type)
The type of the segment. Valid values are TECHNICAL_CUE
and
SHOT
.
Constraints:
Allowed Values: TECHNICAL_CUE, SHOT
type
-
The type of the segment. Valid values are
TECHNICAL_CUE
and SHOT
.
SegmentType
public SegmentDetection withType(java.lang.String type)
The type of the segment. Valid values are TECHNICAL_CUE
and
SHOT
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TECHNICAL_CUE, SHOT
type
-
The type of the segment. Valid values are
TECHNICAL_CUE
and SHOT
.
SegmentType
public void setType(SegmentType type)
The type of the segment. Valid values are TECHNICAL_CUE
and
SHOT
.
Constraints:
Allowed Values: TECHNICAL_CUE, SHOT
type
-
The type of the segment. Valid values are
TECHNICAL_CUE
and SHOT
.
SegmentType
public SegmentDetection withType(SegmentType type)
The type of the segment. Valid values are TECHNICAL_CUE
and
SHOT
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TECHNICAL_CUE, SHOT
type
-
The type of the segment. Valid values are
TECHNICAL_CUE
and SHOT
.
SegmentType
public java.lang.Long getStartTimestampMillis()
The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.
The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.
public void setStartTimestampMillis(java.lang.Long startTimestampMillis)
The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.
startTimestampMillis
- The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.
public SegmentDetection withStartTimestampMillis(java.lang.Long startTimestampMillis)
The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.
Returns a reference to this object so that method calls can be chained together.
startTimestampMillis
- The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.
public java.lang.Long getEndTimestampMillis()
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
public void setEndTimestampMillis(java.lang.Long endTimestampMillis)
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
endTimestampMillis
- The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
public SegmentDetection withEndTimestampMillis(java.lang.Long endTimestampMillis)
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
Returns a reference to this object so that method calls can be chained together.
endTimestampMillis
- The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
public java.lang.Long getDurationMillis()
The duration of the detected segment in milliseconds.
Constraints:
Range: 0 -
The duration of the detected segment in milliseconds.
public void setDurationMillis(java.lang.Long durationMillis)
The duration of the detected segment in milliseconds.
Constraints:
Range: 0 -
durationMillis
- The duration of the detected segment in milliseconds.
public SegmentDetection withDurationMillis(java.lang.Long durationMillis)
The duration of the detected segment in milliseconds.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
durationMillis
- The duration of the detected segment in milliseconds.
public java.lang.String getStartTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the
start of a detected segment. StartTimecode
is in
HH:MM:SS:fr format (and ;fr for drop frame-rates).
The frame-accurate SMPTE timecode, from the start of a video, for
the start of a detected segment. StartTimecode
is in
HH:MM:SS:fr format (and ;fr for drop frame-rates).
public void setStartTimecodeSMPTE(java.lang.String startTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the
start of a detected segment. StartTimecode
is in
HH:MM:SS:fr format (and ;fr for drop frame-rates).
startTimecodeSMPTE
-
The frame-accurate SMPTE timecode, from the start of a video,
for the start of a detected segment.
StartTimecode
is in HH:MM:SS:fr format
(and ;fr for drop frame-rates).
public SegmentDetection withStartTimecodeSMPTE(java.lang.String startTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the
start of a detected segment. StartTimecode
is in
HH:MM:SS:fr format (and ;fr for drop frame-rates).
Returns a reference to this object so that method calls can be chained together.
startTimecodeSMPTE
-
The frame-accurate SMPTE timecode, from the start of a video,
for the start of a detected segment.
StartTimecode
is in HH:MM:SS:fr format
(and ;fr for drop frame-rates).
public java.lang.String getEndTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the end
of a detected segment. EndTimecode
is in HH:MM:SS:fr
format (and ;fr for drop frame-rates).
The frame-accurate SMPTE timecode, from the start of a video, for
the end of a detected segment. EndTimecode
is in
HH:MM:SS:fr format (and ;fr for drop frame-rates).
public void setEndTimecodeSMPTE(java.lang.String endTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the end
of a detected segment. EndTimecode
is in HH:MM:SS:fr
format (and ;fr for drop frame-rates).
endTimecodeSMPTE
-
The frame-accurate SMPTE timecode, from the start of a video,
for the end of a detected segment. EndTimecode
is
in HH:MM:SS:fr format (and ;fr for drop
frame-rates).
public SegmentDetection withEndTimecodeSMPTE(java.lang.String endTimecodeSMPTE)
The frame-accurate SMPTE timecode, from the start of a video, for the end
of a detected segment. EndTimecode
is in HH:MM:SS:fr
format (and ;fr for drop frame-rates).
Returns a reference to this object so that method calls can be chained together.
endTimecodeSMPTE
-
The frame-accurate SMPTE timecode, from the start of a video,
for the end of a detected segment. EndTimecode
is
in HH:MM:SS:fr format (and ;fr for drop
frame-rates).
public java.lang.String getDurationSMPTE()
The duration of the timecode for the detected segment in SMPTE format.
The duration of the timecode for the detected segment in SMPTE format.
public void setDurationSMPTE(java.lang.String durationSMPTE)
The duration of the timecode for the detected segment in SMPTE format.
durationSMPTE
- The duration of the timecode for the detected segment in SMPTE format.
public SegmentDetection withDurationSMPTE(java.lang.String durationSMPTE)
The duration of the timecode for the detected segment in SMPTE format.
Returns a reference to this object so that method calls can be chained together.
durationSMPTE
- The duration of the timecode for the detected segment in SMPTE format.
public TechnicalCueSegment getTechnicalCueSegment()
If the segment is a technical cue, contains information about the technical cue.
If the segment is a technical cue, contains information about the technical cue.
public void setTechnicalCueSegment(TechnicalCueSegment technicalCueSegment)
If the segment is a technical cue, contains information about the technical cue.
technicalCueSegment
- If the segment is a technical cue, contains information about the technical cue.
public SegmentDetection withTechnicalCueSegment(TechnicalCueSegment technicalCueSegment)
If the segment is a technical cue, contains information about the technical cue.
Returns a reference to this object so that method calls can be chained together.
technicalCueSegment
- If the segment is a technical cue, contains information about the technical cue.
public ShotSegment getShotSegment()
If the segment is a shot detection, contains information about the shot detection.
If the segment is a shot detection, contains information about the shot detection.
public void setShotSegment(ShotSegment shotSegment)
If the segment is a shot detection, contains information about the shot detection.
shotSegment
- If the segment is a shot detection, contains information about the shot detection.
public SegmentDetection withShotSegment(ShotSegment shotSegment)
If the segment is a shot detection, contains information about the shot detection.
Returns a reference to this object so that method calls can be chained together.
shotSegment
- If the segment is a shot detection, contains information about the shot detection.
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.