Package com.dropbox.core.v2.files
Class ThumbnailArg
- java.lang.Object
- 
- com.dropbox.core.v2.files.ThumbnailArg
 
- 
 public class ThumbnailArg extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classThumbnailArg.BuilderBuilder forThumbnailArg.
 - 
Field SummaryFields Modifier and Type Field Description protected ThumbnailFormatformatprotected ThumbnailModemodeprotected java.lang.Stringpathprotected ThumbnailSizesize
 - 
Constructor SummaryConstructors Constructor Description ThumbnailArg(java.lang.String path)NoneThumbnailArg(java.lang.String path, ThumbnailFormat format, ThumbnailSize size, ThumbnailMode mode)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ThumbnailFormatgetFormat()The format for the thumbnail image, jpeg (default) or png.ThumbnailModegetMode()How to resize and crop the image to achieve the desired size.java.lang.StringgetPath()The path to the image file you want to thumbnail.ThumbnailSizegetSize()The size for the thumbnail image.inthashCode()static ThumbnailArg.BuildernewBuilder(java.lang.String path)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
pathprotected final java.lang.String path 
 - 
formatprotected final ThumbnailFormat format 
 - 
sizeprotected final ThumbnailSize size 
 - 
modeprotected final ThumbnailMode mode 
 
- 
 - 
Constructor Detail- 
ThumbnailArgpublic ThumbnailArg(java.lang.String path, ThumbnailFormat format, ThumbnailSize size, ThumbnailMode mode)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
- path- The path to the image file you want to thumbnail. Must match pattern "- (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not be- null.
- 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.
- size- The size for the thumbnail image. Must not be- null.
- mode- How to resize and crop the image to achieve the desired size. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
ThumbnailArgpublic ThumbnailArg(java.lang.String path) NoneThe default values for unset fields will be used. - Parameters:
- path- The path to the image file you want to thumbnail. Must match pattern "- (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getPathpublic java.lang.String getPath() The path to the image file you want to thumbnail.- Returns:
- value for this field, never null.
 
 - 
getFormatpublic ThumbnailFormat getFormat() 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.- Returns:
- value for this field, or nullif not present. Defaults to ThumbnailFormat.JPEG.
 
 - 
getSizepublic ThumbnailSize getSize() The size for the thumbnail image.- Returns:
- value for this field, or nullif not present. Defaults to ThumbnailSize.W64H64.
 
 - 
getModepublic ThumbnailMode getMode() How to resize and crop the image to achieve the desired size.- Returns:
- value for this field, or nullif not present. Defaults to ThumbnailMode.STRICT.
 
 - 
newBuilderpublic static ThumbnailArg.Builder newBuilder(java.lang.String path) Returns a new builder for creating an instance of this class.- Parameters:
- path- The path to the image file you want to thumbnail. Must match pattern "- (/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)" and not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-