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
public static class PhotoMetadata.Builder extends MediaMetadata.Builder
Builder forPhotoMetadata
.
-
-
Field Summary
-
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 PhotoMetadata
build()
Builds an instance ofPhotoMetadata
configured with this builder's valuesPhotoMetadata.Builder
withDimensions(Dimensions dimensions)
Set value for optional field.PhotoMetadata.Builder
withLocation(GpsCoordinates location)
Set value for optional field.PhotoMetadata.Builder
withTimeTaken(java.util.Date timeTaken)
Set value for optional field.
-
-
-
Method Detail
-
withDimensions
public PhotoMetadata.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 PhotoMetadata.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 PhotoMetadata.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 PhotoMetadata build()
Builds an instance ofPhotoMetadata
configured with this builder's values- Overrides:
build
in classMediaMetadata.Builder
- Returns:
- new instance of
PhotoMetadata
-
-