Package com.dropbox.core.v2.files
Class VideoMetadata.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.MediaMetadata.Builder
-
- com.dropbox.core.v2.files.VideoMetadata.Builder
-
- Enclosing class:
- VideoMetadata
public static class VideoMetadata.Builder extends MediaMetadata.Builder
Builder forVideoMetadata
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Long
duration
-
Fields inherited from class com.dropbox.core.v2.files.MediaMetadata.Builder
dimensions, location, timeTaken
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoMetadata
build()
Builds an instance ofVideoMetadata
configured with this builder's valuesVideoMetadata.Builder
withDimensions(Dimensions dimensions)
Set value for optional field.VideoMetadata.Builder
withDuration(java.lang.Long duration)
Set value for optional field.VideoMetadata.Builder
withLocation(GpsCoordinates location)
Set value for optional field.VideoMetadata.Builder
withTimeTaken(java.util.Date timeTaken)
Set value for optional field.
-
-
-
Method Detail
-
withDuration
public VideoMetadata.Builder withDuration(java.lang.Long duration)
Set value for optional field.- Parameters:
duration
- The duration of the video in milliseconds.- Returns:
- this builder
-
withDimensions
public VideoMetadata.Builder withDimensions(Dimensions dimensions)
Set value for optional field.- Overrides:
withDimensions
in classMediaMetadata.Builder
- Parameters:
dimensions
- Dimension of the photo/video.- Returns:
- this builder
-
withLocation
public VideoMetadata.Builder withLocation(GpsCoordinates location)
Set value for optional field.- Overrides:
withLocation
in classMediaMetadata.Builder
- Parameters:
location
- The GPS coordinate of the photo/video.- Returns:
- this builder
-
withTimeTaken
public VideoMetadata.Builder withTimeTaken(java.util.Date timeTaken)
Set value for optional field.- Overrides:
withTimeTaken
in classMediaMetadata.Builder
- Parameters:
timeTaken
- The timestamp when the photo/video is taken.- Returns:
- this builder
-
build
public VideoMetadata build()
Builds an instance ofVideoMetadata
configured with this builder's values- Overrides:
build
in classMediaMetadata.Builder
- Returns:
- new instance of
VideoMetadata
-
-