Package com.dropbox.core.v2.files
Class PhotoMetadata.Builder
java.lang.Object
com.dropbox.core.v2.files.MediaMetadata.Builder
com.dropbox.core.v2.files.PhotoMetadata.Builder
- Enclosing class:
PhotoMetadata
Builder for
PhotoMetadata.-
Field Summary
Fields inherited from class com.dropbox.core.v2.files.MediaMetadata.Builder
dimensions, location, timeTaken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofPhotoMetadataconfigured 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.
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withDimensions
Set value for optional field.- Overrides:
withDimensionsin classMediaMetadata.Builder- Parameters:
dimensions- Dimension of the photo/video.- Returns:
- this builder
-
withLocation
Set value for optional field.- Overrides:
withLocationin classMediaMetadata.Builder- Parameters:
location- The GPS coordinate of the photo/video.- Returns:
- this builder
-
withTimeTaken
Set value for optional field.- Overrides:
withTimeTakenin classMediaMetadata.Builder- Parameters:
timeTaken- The timestamp when the photo/video is taken.- Returns:
- this builder
-
build
Builds an instance ofPhotoMetadataconfigured with this builder's values- Overrides:
buildin classMediaMetadata.Builder- Returns:
- new instance of
PhotoMetadata
-