Package com.intercom.api.types
Class FileAttribute.Builder
java.lang.Object
com.intercom.api.types.FileAttribute.Builder
- All Implemented Interfaces:
FileAttribute._FinalStage,FileAttribute.ContentTypeStage,FileAttribute.FilesizeStage,FileAttribute.HeightStage,FileAttribute.NameStage,FileAttribute.TypeStage,FileAttribute.UrlStage,FileAttribute.WidthStage
- Enclosing class:
FileAttribute
public static final class FileAttribute.Builder
extends Object
implements FileAttribute.TypeStage, FileAttribute.NameStage, FileAttribute.UrlStage, FileAttribute.ContentTypeStage, FileAttribute.FilesizeStage, FileAttribute.WidthStage, FileAttribute.HeightStage, FileAttribute._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()contentType(String contentType) The type of filefilesize(int filesize) The size of the file in bytesfrom(FileAttribute other) height(int height) The height of the file in pixels, if applicableThe name of the fileThe url of the file.width(int width) The width of the file in pixels, if applicable
-
Method Details
-
from
- Specified by:
fromin interfaceFileAttribute.TypeStage
-
type
- Specified by:
typein interfaceFileAttribute.TypeStage
-
name
The name of the file
- Specified by:
namein interfaceFileAttribute.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
The url of the file. This is a temporary URL and will expire after 30 minutes.
- Specified by:
urlin interfaceFileAttribute.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentType
The type of file
- Specified by:
contentTypein interfaceFileAttribute.ContentTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
filesize
The size of the file in bytes
- Specified by:
filesizein interfaceFileAttribute.FilesizeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
width
The width of the file in pixels, if applicable
- Specified by:
widthin interfaceFileAttribute.WidthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
height
The height of the file in pixels, if applicable
- Specified by:
heightin interfaceFileAttribute.HeightStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
- Specified by:
buildin interfaceFileAttribute._FinalStage
-