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
 
 public static class MediaMetadata.Builder extends java.lang.ObjectBuilder forMediaMetadata.
- 
- 
Field SummaryFields Modifier and Type Field Description protected Dimensionsdimensionsprotected GpsCoordinateslocationprotected java.util.DatetimeTaken
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaMetadatabuild()Builds an instance ofMediaMetadataconfigured with this builder's valuesMediaMetadata.BuilderwithDimensions(Dimensions dimensions)Set value for optional field.MediaMetadata.BuilderwithLocation(GpsCoordinates location)Set value for optional field.MediaMetadata.BuilderwithTimeTaken(java.util.Date timeTaken)Set value for optional field.
 
- 
- 
- 
Field Detail- 
dimensionsprotected Dimensions dimensions 
 - 
locationprotected GpsCoordinates location 
 - 
timeTakenprotected java.util.Date timeTaken 
 
- 
 - 
Method Detail- 
withDimensionspublic MediaMetadata.Builder withDimensions(Dimensions dimensions) Set value for optional field.- Parameters:
- dimensions- Dimension of the photo/video.
- Returns:
- this builder
 
 - 
withLocationpublic MediaMetadata.Builder withLocation(GpsCoordinates location) Set value for optional field.- Parameters:
- location- The GPS coordinate of the photo/video.
- Returns:
- this builder
 
 - 
withTimeTakenpublic MediaMetadata.Builder withTimeTaken(java.util.Date timeTaken) Set value for optional field.- Parameters:
- timeTaken- The timestamp when the photo/video is taken.
- Returns:
- this builder
 
 - 
buildpublic MediaMetadata build() Builds an instance ofMediaMetadataconfigured with this builder's values- Returns:
- new instance of MediaMetadata
 
 
- 
 
-