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 Summary
Fields Modifier and Type Field Description protected Dimensionsdimensionsprotected GpsCoordinateslocationprotected java.util.DatetimeTaken
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All 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
-
dimensions
protected Dimensions dimensions
-
location
protected GpsCoordinates location
-
timeTaken
protected java.util.Date timeTaken
-
-
Method Detail
-
withDimensions
public MediaMetadata.Builder withDimensions(Dimensions dimensions)
Set value for optional field.- Parameters:
dimensions- Dimension of the photo/video.- Returns:
- this builder
-
withLocation
public MediaMetadata.Builder withLocation(GpsCoordinates location)
Set value for optional field.- Parameters:
location- The GPS coordinate of the photo/video.- Returns:
- this builder
-
withTimeTaken
public 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
-
build
public MediaMetadata build()
Builds an instance ofMediaMetadataconfigured with this builder's values- Returns:
- new instance of
MediaMetadata
-
-