Package com.dropbox.core.v2.files
Class ThumbnailArg.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.files.ThumbnailArg.Builder
 
- 
- Enclosing class:
- ThumbnailArg
 
 public static class ThumbnailArg.Builder extends java.lang.ObjectBuilder forThumbnailArg.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ThumbnailFormatformatprotected ThumbnailModemodeprotected java.lang.Stringpathprotected ThumbnailSizesize
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String path)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ThumbnailArgbuild()Builds an instance ofThumbnailArgconfigured with this builder's valuesThumbnailArg.BuilderwithFormat(ThumbnailFormat format)Set value for optional field.ThumbnailArg.BuilderwithMode(ThumbnailMode mode)Set value for optional field.ThumbnailArg.BuilderwithSize(ThumbnailSize size)Set value for optional field.
 
- 
- 
- 
Field Detail- 
pathprotected final java.lang.String path 
 - 
formatprotected ThumbnailFormat format 
 - 
sizeprotected ThumbnailSize size 
 - 
modeprotected ThumbnailMode mode 
 
- 
 - 
Method Detail- 
withFormatpublic ThumbnailArg.Builder withFormat(ThumbnailFormat format) Set value for optional field.If left unset or set to null, defaults toThumbnailFormat.JPEG.- Parameters:
- format- The format for the thumbnail image, jpeg (default) or png. For images that are photos, jpeg should be preferred, while png is better for screenshots and digital arts. Must not be- null. Defaults to- ThumbnailFormat.JPEGwhen set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withSizepublic ThumbnailArg.Builder withSize(ThumbnailSize size) Set value for optional field.If left unset or set to null, defaults toThumbnailSize.W64H64.- Parameters:
- size- The size for the thumbnail image. Must not be- null. Defaults to- ThumbnailSize.W64H64when set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
withModepublic ThumbnailArg.Builder withMode(ThumbnailMode mode) Set value for optional field.If left unset or set to null, defaults toThumbnailMode.STRICT.- Parameters:
- mode- How to resize and crop the image to achieve the desired size. Must not be- null. Defaults to- ThumbnailMode.STRICTwhen set to- null.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
buildpublic ThumbnailArg build() Builds an instance ofThumbnailArgconfigured with this builder's values- Returns:
- new instance of ThumbnailArg
 
 
- 
 
-