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 protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhotoMetadatabuild()Builds an instance ofPhotoMetadataconfigured with this builder's valuesPhotoMetadata.BuilderwithDimensions(Dimensions dimensions)Set value for optional field.PhotoMetadata.BuilderwithLocation(GpsCoordinates location)Set value for optional field.PhotoMetadata.BuilderwithTimeTaken(java.util.Date timeTaken)Set value for optional field.
-
-
-
Method Detail
-
withDimensions
public PhotoMetadata.Builder withDimensions(Dimensions dimensions)
Set value for optional field.- Overrides:
withDimensionsin 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:
withLocationin 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:
withTimeTakenin classMediaMetadata.Builder- Parameters:
timeTaken- The timestamp when the photo/video is taken.- Returns:
- this builder
-
build
public PhotoMetadata build()
Builds an instance ofPhotoMetadataconfigured with this builder's values- Overrides:
buildin classMediaMetadata.Builder- Returns:
- new instance of
PhotoMetadata
-
-