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