@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VideoMetadata extends Object implements Serializable, Cloneable, StructuredPojo
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 |
---|---|
VideoMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getCodec()
Type of compression used in the analyzed video.
|
String |
getColorRange()
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
|
Long |
getDurationMillis()
Length of the video in milliseconds.
|
String |
getFormat()
Format of the analyzed video.
|
Long |
getFrameHeight()
Vertical pixel dimension of the video.
|
Float |
getFrameRate()
Number of frames per second in the video.
|
Long |
getFrameWidth()
Horizontal pixel dimension of the video.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCodec(String codec)
Type of compression used in the analyzed video.
|
void |
setColorRange(String colorRange)
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
|
void |
setDurationMillis(Long durationMillis)
Length of the video in milliseconds.
|
void |
setFormat(String format)
Format of the analyzed video.
|
void |
setFrameHeight(Long frameHeight)
Vertical pixel dimension of the video.
|
void |
setFrameRate(Float frameRate)
Number of frames per second in the video.
|
void |
setFrameWidth(Long frameWidth)
Horizontal pixel dimension of the video.
|
String |
toString()
Returns a string representation of this object.
|
VideoMetadata |
withCodec(String codec)
Type of compression used in the analyzed video.
|
VideoMetadata |
withColorRange(String colorRange)
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
|
VideoMetadata |
withColorRange(VideoColorRange colorRange)
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
|
VideoMetadata |
withDurationMillis(Long durationMillis)
Length of the video in milliseconds.
|
VideoMetadata |
withFormat(String format)
Format of the analyzed video.
|
VideoMetadata |
withFrameHeight(Long frameHeight)
Vertical pixel dimension of the video.
|
VideoMetadata |
withFrameRate(Float frameRate)
Number of frames per second in the video.
|
VideoMetadata |
withFrameWidth(Long frameWidth)
Horizontal pixel dimension of the video.
|
public void setCodec(String codec)
Type of compression used in the analyzed video.
codec
- Type of compression used in the analyzed video.public String getCodec()
Type of compression used in the analyzed video.
public VideoMetadata withCodec(String codec)
Type of compression used in the analyzed video.
codec
- Type of compression used in the analyzed video.public void setDurationMillis(Long durationMillis)
Length of the video in milliseconds.
durationMillis
- Length of the video in milliseconds.public Long getDurationMillis()
Length of the video in milliseconds.
public VideoMetadata withDurationMillis(Long durationMillis)
Length of the video in milliseconds.
durationMillis
- Length of the video in milliseconds.public void setFormat(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 String getFormat()
Format of the analyzed video. Possible values are MP4, MOV and AVI.
public VideoMetadata withFormat(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 void setFrameRate(Float frameRate)
Number of frames per second in the video.
frameRate
- Number of frames per second in the video.public Float getFrameRate()
Number of frames per second in the video.
public VideoMetadata withFrameRate(Float frameRate)
Number of frames per second in the video.
frameRate
- Number of frames per second in the video.public void setFrameHeight(Long frameHeight)
Vertical pixel dimension of the video.
frameHeight
- Vertical pixel dimension of the video.public Long getFrameHeight()
Vertical pixel dimension of the video.
public VideoMetadata withFrameHeight(Long frameHeight)
Vertical pixel dimension of the video.
frameHeight
- Vertical pixel dimension of the video.public void setFrameWidth(Long frameWidth)
Horizontal pixel dimension of the video.
frameWidth
- Horizontal pixel dimension of the video.public Long getFrameWidth()
Horizontal pixel dimension of the video.
public VideoMetadata withFrameWidth(Long frameWidth)
Horizontal pixel dimension of the video.
frameWidth
- Horizontal pixel dimension of the video.public void setColorRange(String colorRange)
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
colorRange
- A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).VideoColorRange
public String getColorRange()
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
VideoColorRange
public VideoMetadata withColorRange(String colorRange)
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
colorRange
- A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).VideoColorRange
public VideoMetadata withColorRange(VideoColorRange colorRange)
A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).
colorRange
- A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).VideoColorRange
public String toString()
toString
in class Object
Object.toString()
public VideoMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.