Package com.intercom.api.types
Class PartAttachment.Builder
- java.lang.Object
-
- com.intercom.api.types.PartAttachment.Builder
-
- All Implemented Interfaces:
PartAttachment._FinalStage,PartAttachment.ContentTypeStage,PartAttachment.FilesizeStage,PartAttachment.HeightStage,PartAttachment.NameStage,PartAttachment.TypeStage,PartAttachment.UrlStage,PartAttachment.WidthStage
- Enclosing class:
- PartAttachment
public static final class PartAttachment.Builder extends java.lang.Object implements PartAttachment.TypeStage, PartAttachment.NameStage, PartAttachment.UrlStage, PartAttachment.ContentTypeStage, PartAttachment.FilesizeStage, PartAttachment.WidthStage, PartAttachment.HeightStage, PartAttachment._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartAttachmentbuild()PartAttachment.FilesizeStagecontentType(java.lang.String contentType)The content type of the attachmentPartAttachment.WidthStagefilesize(int filesize)The size of the attachmentPartAttachment.Builderfrom(PartAttachment other)PartAttachment._FinalStageheight(int height)The height of the attachmentPartAttachment.UrlStagename(java.lang.String name)The name of the attachmentPartAttachment.NameStagetype(java.lang.String type)The type of attachmentPartAttachment.ContentTypeStageurl(java.lang.String url)The URL of the attachmentPartAttachment.HeightStagewidth(int width)The width of the attachment
-
-
-
Method Detail
-
from
public PartAttachment.Builder from(PartAttachment other)
- Specified by:
fromin interfacePartAttachment.TypeStage
-
type
public PartAttachment.NameStage type(@NotNull java.lang.String type)
The type of attachmentThe type of attachment
- Specified by:
typein interfacePartAttachment.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public PartAttachment.UrlStage name(@NotNull java.lang.String name)
The name of the attachmentThe name of the attachment
- Specified by:
namein interfacePartAttachment.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public PartAttachment.ContentTypeStage url(@NotNull java.lang.String url)
The URL of the attachmentThe URL of the attachment
- Specified by:
urlin interfacePartAttachment.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentType
public PartAttachment.FilesizeStage contentType(@NotNull java.lang.String contentType)
The content type of the attachmentThe content type of the attachment
- Specified by:
contentTypein interfacePartAttachment.ContentTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
filesize
public PartAttachment.WidthStage filesize(int filesize)
The size of the attachmentThe size of the attachment
- Specified by:
filesizein interfacePartAttachment.FilesizeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
width
public PartAttachment.HeightStage width(int width)
The width of the attachmentThe width of the attachment
- Specified by:
widthin interfacePartAttachment.WidthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
height
public PartAttachment._FinalStage height(int height)
The height of the attachmentThe height of the attachment
- Specified by:
heightin interfacePartAttachment.HeightStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public PartAttachment build()
- Specified by:
buildin interfacePartAttachment._FinalStage
-
-