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
Builder for
MediaMetadata.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofMediaMetadataconfigured with this builder's valueswithDimensions(Dimensions dimensions) Set value for optional field.withLocation(GpsCoordinates location) Set value for optional field.withTimeTaken(Date timeTaken) Set value for optional field.
-
Field Details
-
dimensions
-
location
-
timeTaken
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withDimensions
Set value for optional field.- Parameters:
dimensions- Dimension of the photo/video.- Returns:
- this builder
-
withLocation
Set value for optional field.- Parameters:
location- The GPS coordinate of the photo/video.- Returns:
- this builder
-
withTimeTaken
Set value for optional field.- Parameters:
timeTaken- The timestamp when the photo/video is taken.- Returns:
- this builder
-
build
Builds an instance ofMediaMetadataconfigured with this builder's values- Returns:
- new instance of
MediaMetadata
-