Package com.intercom.api.types
Class FileAttribute.Builder
- java.lang.Object
-
- com.intercom.api.types.FileAttribute.Builder
-
- Enclosing class:
- FileAttribute
public static final class FileAttribute.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileAttributebuild()FileAttribute.BuildercontentType(java.lang.String contentType)FileAttribute.BuildercontentType(java.util.Optional<java.lang.String> contentType)The type of fileFileAttribute.Builderfilesize(java.lang.Integer filesize)FileAttribute.Builderfilesize(java.util.Optional<java.lang.Integer> filesize)The size of the file in bytesFileAttribute.Builderfrom(FileAttribute other)FileAttribute.Builderheight(java.lang.Integer height)FileAttribute.Builderheight(java.util.Optional<java.lang.Integer> height)The height of the file in pixels, if applicableFileAttribute.Buildername(java.lang.String name)FileAttribute.Buildername(java.util.Optional<java.lang.String> name)The name of the fileFileAttribute.Buildertype(java.lang.String type)FileAttribute.Buildertype(java.util.Optional<java.lang.String> type)FileAttribute.Builderurl(java.lang.String url)FileAttribute.Builderurl(java.util.Optional<java.lang.String> url)The url of the file.FileAttribute.Builderwidth(java.lang.Integer width)FileAttribute.Builderwidth(java.util.Optional<java.lang.Integer> width)The width of the file in pixels, if applicable
-
-
-
Method Detail
-
from
public FileAttribute.Builder from(FileAttribute other)
-
type
public FileAttribute.Builder type(java.util.Optional<java.lang.String> type)
-
type
public FileAttribute.Builder type(java.lang.String type)
-
name
public FileAttribute.Builder name(java.util.Optional<java.lang.String> name)
The name of the file
-
name
public FileAttribute.Builder name(java.lang.String name)
-
url
public FileAttribute.Builder url(java.util.Optional<java.lang.String> url)
The url of the file. This is a temporary URL and will expire after 30 minutes.
-
url
public FileAttribute.Builder url(java.lang.String url)
-
contentType
public FileAttribute.Builder contentType(java.util.Optional<java.lang.String> contentType)
The type of file
-
contentType
public FileAttribute.Builder contentType(java.lang.String contentType)
-
filesize
public FileAttribute.Builder filesize(java.util.Optional<java.lang.Integer> filesize)
The size of the file in bytes
-
filesize
public FileAttribute.Builder filesize(java.lang.Integer filesize)
-
width
public FileAttribute.Builder width(java.util.Optional<java.lang.Integer> width)
The width of the file in pixels, if applicable
-
width
public FileAttribute.Builder width(java.lang.Integer width)
-
height
public FileAttribute.Builder height(java.util.Optional<java.lang.Integer> height)
The height of the file in pixels, if applicable
-
height
public FileAttribute.Builder height(java.lang.Integer height)
-
build
public FileAttribute build()
-
-