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 java.lang.Object implements FileAttribute.TypeStage, FileAttribute.NameStage, FileAttribute.UrlStage, FileAttribute.ContentTypeStage, FileAttribute.FilesizeStage, FileAttribute.WidthStage, FileAttribute.HeightStage, FileAttribute._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileAttributebuild()FileAttribute.FilesizeStagecontentType(java.lang.String contentType)The type of fileFileAttribute.WidthStagefilesize(int filesize)The size of the file in bytesFileAttribute.Builderfrom(FileAttribute other)FileAttribute._FinalStageheight(int height)The height of the file in pixels, if applicableFileAttribute.UrlStagename(java.lang.String name)The name of the fileFileAttribute.NameStagetype(java.lang.String type)FileAttribute.ContentTypeStageurl(java.lang.String url)The url of the file.FileAttribute.HeightStagewidth(int width)The width of the file in pixels, if applicable
-
-
-
Method Detail
-
from
public FileAttribute.Builder from(FileAttribute other)
- Specified by:
fromin interfaceFileAttribute.TypeStage
-
type
public FileAttribute.NameStage type(@NotNull java.lang.String type)
- Specified by:
typein interfaceFileAttribute.TypeStage
-
name
public FileAttribute.UrlStage name(@NotNull java.lang.String name)
The name of the fileThe name of the file
- Specified by:
namein interfaceFileAttribute.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public FileAttribute.ContentTypeStage url(@NotNull java.lang.String url)
The url of the file. This is a temporary URL and will expire after 30 minutes.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
public FileAttribute.FilesizeStage contentType(@NotNull java.lang.String contentType)
The type of fileThe type of file
- Specified by:
contentTypein interfaceFileAttribute.ContentTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
filesize
public FileAttribute.WidthStage filesize(int filesize)
The size of the file in bytesThe size of the file in bytes
- Specified by:
filesizein interfaceFileAttribute.FilesizeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
width
public FileAttribute.HeightStage width(int width)
The width of the file in pixels, if applicableThe 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
public FileAttribute._FinalStage height(int height)
The height of the file in pixels, if applicableThe 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
public FileAttribute build()
- Specified by:
buildin interfaceFileAttribute._FinalStage
-
-