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.Builderdimensions, location, timeTaken
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()
 - 
Method SummaryAll 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- 
withDimensionspublic PhotoMetadata.Builder withDimensions(Dimensions dimensions) Set value for optional field.- Overrides:
- withDimensionsin class- MediaMetadata.Builder
- Parameters:
- dimensions- Dimension of the photo/video.
- Returns:
- this builder
 
 - 
withLocationpublic PhotoMetadata.Builder withLocation(GpsCoordinates location) Set value for optional field.- Overrides:
- withLocationin class- MediaMetadata.Builder
- Parameters:
- location- The GPS coordinate of the photo/video.
- Returns:
- this builder
 
 - 
withTimeTakenpublic PhotoMetadata.Builder withTimeTaken(java.util.Date timeTaken) Set value for optional field.- Overrides:
- withTimeTakenin class- MediaMetadata.Builder
- Parameters:
- timeTaken- The timestamp when the photo/video is taken.
- Returns:
- this builder
 
 - 
buildpublic PhotoMetadata build() Builds an instance ofPhotoMetadataconfigured with this builder's values- Overrides:
- buildin class- MediaMetadata.Builder
- Returns:
- new instance of PhotoMetadata
 
 
- 
 
-