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 Object
Builder for MediaMetadata.
  • Field Details

  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • 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(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 of MediaMetadata configured with this builder's values
      Returns:
      new instance of MediaMetadata