public class VideoMetadata
extends java.lang.Object
implements java.io.Serializable
Information about a video that Amazon Rekognition analyzed.
Videometadata
is returned in every page of paginated responses
from a Amazon Rekognition video operation.
Constructor and Description |
---|
VideoMetadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCodec()
Type of compression used in the analyzed video.
|
java.lang.Long |
getDurationMillis()
Length of the video in milliseconds.
|
java.lang.String |
getFormat()
Format of the analyzed video.
|
java.lang.Long |
getFrameHeight()
Vertical pixel dimension of the video.
|
java.lang.Float |
getFrameRate()
Number of frames per second in the video.
|
java.lang.Long |
getFrameWidth()
Horizontal pixel dimension of the video.
|
int |
hashCode() |
void |
setCodec(java.lang.String codec)
Type of compression used in the analyzed video.
|
void |
setDurationMillis(java.lang.Long durationMillis)
Length of the video in milliseconds.
|
void |
setFormat(java.lang.String format)
Format of the analyzed video.
|
void |
setFrameHeight(java.lang.Long frameHeight)
Vertical pixel dimension of the video.
|
void |
setFrameRate(java.lang.Float frameRate)
Number of frames per second in the video.
|
void |
setFrameWidth(java.lang.Long frameWidth)
Horizontal pixel dimension of the video.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VideoMetadata |
withCodec(java.lang.String codec)
Type of compression used in the analyzed video.
|
VideoMetadata |
withDurationMillis(java.lang.Long durationMillis)
Length of the video in milliseconds.
|
VideoMetadata |
withFormat(java.lang.String format)
Format of the analyzed video.
|
VideoMetadata |
withFrameHeight(java.lang.Long frameHeight)
Vertical pixel dimension of the video.
|
VideoMetadata |
withFrameRate(java.lang.Float frameRate)
Number of frames per second in the video.
|
VideoMetadata |
withFrameWidth(java.lang.Long frameWidth)
Horizontal pixel dimension of the video.
|
public java.lang.String getCodec()
Type of compression used in the analyzed video.
Type of compression used in the analyzed video.
public void setCodec(java.lang.String codec)
Type of compression used in the analyzed video.
codec
- Type of compression used in the analyzed video.
public VideoMetadata withCodec(java.lang.String codec)
Type of compression used in the analyzed video.
Returns a reference to this object so that method calls can be chained together.
codec
- Type of compression used in the analyzed video.
public java.lang.Long getDurationMillis()
Length of the video in milliseconds.
Constraints:
Range: 0 -
Length of the video in milliseconds.
public void setDurationMillis(java.lang.Long durationMillis)
Length of the video in milliseconds.
Constraints:
Range: 0 -
durationMillis
- Length of the video in milliseconds.
public VideoMetadata withDurationMillis(java.lang.Long durationMillis)
Length of the video in milliseconds.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
durationMillis
- Length of the video in milliseconds.
public java.lang.String getFormat()
Format of the analyzed video. Possible values are MP4, MOV and AVI.
Format of the analyzed video. Possible values are MP4, MOV and AVI.
public void setFormat(java.lang.String format)
Format of the analyzed video. Possible values are MP4, MOV and AVI.
format
- Format of the analyzed video. Possible values are MP4, MOV and AVI.
public VideoMetadata withFormat(java.lang.String format)
Format of the analyzed video. Possible values are MP4, MOV and AVI.
Returns a reference to this object so that method calls can be chained together.
format
- Format of the analyzed video. Possible values are MP4, MOV and AVI.
public java.lang.Float getFrameRate()
Number of frames per second in the video.
Number of frames per second in the video.
public void setFrameRate(java.lang.Float frameRate)
Number of frames per second in the video.
frameRate
- Number of frames per second in the video.
public VideoMetadata withFrameRate(java.lang.Float frameRate)
Number of frames per second in the video.
Returns a reference to this object so that method calls can be chained together.
frameRate
- Number of frames per second in the video.
public java.lang.Long getFrameHeight()
Vertical pixel dimension of the video.
Constraints:
Range: 0 -
Vertical pixel dimension of the video.
public void setFrameHeight(java.lang.Long frameHeight)
Vertical pixel dimension of the video.
Constraints:
Range: 0 -
frameHeight
- Vertical pixel dimension of the video.
public VideoMetadata withFrameHeight(java.lang.Long frameHeight)
Vertical pixel dimension of the video.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
frameHeight
- Vertical pixel dimension of the video.
public java.lang.Long getFrameWidth()
Horizontal pixel dimension of the video.
Constraints:
Range: 0 -
Horizontal pixel dimension of the video.
public void setFrameWidth(java.lang.Long frameWidth)
Horizontal pixel dimension of the video.
Constraints:
Range: 0 -
frameWidth
- Horizontal pixel dimension of the video.
public VideoMetadata withFrameWidth(java.lang.Long frameWidth)
Horizontal pixel dimension of the video.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
frameWidth
- Horizontal pixel dimension of the video.
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.