Package com.intercom.api.types
Class PartAttachment.Builder
- java.lang.Object
-
- com.intercom.api.types.PartAttachment.Builder
-
- All Implemented Interfaces:
PartAttachment._FinalStage,PartAttachment.NameStage,PartAttachment.TypeStage,PartAttachment.UrlStage
- Enclosing class:
- PartAttachment
public static final class PartAttachment.Builder extends java.lang.Object implements PartAttachment.TypeStage, PartAttachment.NameStage, PartAttachment.UrlStage, PartAttachment._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartAttachmentbuild()PartAttachment._FinalStagecontentType(java.lang.String contentType)The content type of the attachmentPartAttachment._FinalStagecontentType(java.util.Optional<java.lang.String> contentType)The content type of the attachmentPartAttachment._FinalStagefilesize(java.lang.Integer filesize)The size of the attachmentPartAttachment._FinalStagefilesize(java.util.Optional<java.lang.Integer> filesize)The size of the attachmentPartAttachment.Builderfrom(PartAttachment other)PartAttachment._FinalStageheight(java.lang.Integer height)The height of the attachmentPartAttachment._FinalStageheight(java.util.Optional<java.lang.Integer> 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._FinalStageurl(java.lang.String url)The URL of the attachmentPartAttachment._FinalStagewidth(java.lang.Integer width)The width of the attachmentPartAttachment._FinalStagewidth(java.util.Optional<java.lang.Integer> 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 attachment
The 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 attachment
The name of the attachment
- Specified by:
namein interfacePartAttachment.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public PartAttachment._FinalStage url(@NotNull java.lang.String url)
The URL of the attachment
The URL of the attachment
- Specified by:
urlin interfacePartAttachment.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
height
public PartAttachment._FinalStage height(java.lang.Integer height)
The height of the attachment
- Specified by:
heightin interfacePartAttachment._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
height
public PartAttachment._FinalStage height(java.util.Optional<java.lang.Integer> height)
The height of the attachment
- Specified by:
heightin interfacePartAttachment._FinalStage
-
width
public PartAttachment._FinalStage width(java.lang.Integer width)
The width of the attachment
- Specified by:
widthin interfacePartAttachment._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
width
public PartAttachment._FinalStage width(java.util.Optional<java.lang.Integer> width)
The width of the attachment
- Specified by:
widthin interfacePartAttachment._FinalStage
-
filesize
public PartAttachment._FinalStage filesize(java.lang.Integer filesize)
The size of the attachment
- Specified by:
filesizein interfacePartAttachment._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
filesize
public PartAttachment._FinalStage filesize(java.util.Optional<java.lang.Integer> filesize)
The size of the attachment
- Specified by:
filesizein interfacePartAttachment._FinalStage
-
contentType
public PartAttachment._FinalStage contentType(java.lang.String contentType)
The content type of the attachment
- Specified by:
contentTypein interfacePartAttachment._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentType
public PartAttachment._FinalStage contentType(java.util.Optional<java.lang.String> contentType)
The content type of the attachment
- Specified by:
contentTypein interfacePartAttachment._FinalStage
-
build
public PartAttachment build()
- Specified by:
buildin interfacePartAttachment._FinalStage
-
-