Class CreateNoteRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.notes.requests.CreateNoteRequest.Builder
-
- All Implemented Interfaces:
CreateNoteRequest._FinalStage,CreateNoteRequest.BodyStage,CreateNoteRequest.IdStage
- Enclosing class:
- CreateNoteRequest
public static final class CreateNoteRequest.Builder extends java.lang.Object implements CreateNoteRequest.IdStage, CreateNoteRequest.BodyStage, CreateNoteRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateNoteRequest._FinalStageadminId(java.lang.String adminId)The unique identifier of a given admin.CreateNoteRequest._FinalStageadminId(java.util.Optional<java.lang.String> adminId)The unique identifier of a given admin.CreateNoteRequest._FinalStagebody(java.lang.String body)The text of the note.CreateNoteRequestbuild()CreateNoteRequest._FinalStagecontactId(java.lang.String contactId)The unique identifier of a given contact.CreateNoteRequest._FinalStagecontactId(java.util.Optional<java.lang.String> contactId)The unique identifier of a given contact.CreateNoteRequest.Builderfrom(CreateNoteRequest other)CreateNoteRequest.BodyStageid(int id)The unique identifier of a given contact.
-
-
-
Method Detail
-
from
public CreateNoteRequest.Builder from(CreateNoteRequest other)
- Specified by:
fromin interfaceCreateNoteRequest.IdStage
-
id
public CreateNoteRequest.BodyStage id(int id)
The unique identifier of a given contact.
The unique identifier of a given contact.
- Specified by:
idin interfaceCreateNoteRequest.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public CreateNoteRequest._FinalStage body(@NotNull java.lang.String body)
The text of the note.
The text of the note.
- Specified by:
bodyin interfaceCreateNoteRequest.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminId
public CreateNoteRequest._FinalStage adminId(java.lang.String adminId)
The unique identifier of a given admin.
- Specified by:
adminIdin interfaceCreateNoteRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminId
public CreateNoteRequest._FinalStage adminId(java.util.Optional<java.lang.String> adminId)
The unique identifier of a given admin.
- Specified by:
adminIdin interfaceCreateNoteRequest._FinalStage
-
contactId
public CreateNoteRequest._FinalStage contactId(java.lang.String contactId)
The unique identifier of a given contact.
- Specified by:
contactIdin interfaceCreateNoteRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contactId
public CreateNoteRequest._FinalStage contactId(java.util.Optional<java.lang.String> contactId)
The unique identifier of a given contact.
- Specified by:
contactIdin interfaceCreateNoteRequest._FinalStage
-
build
public CreateNoteRequest build()
- Specified by:
buildin interfaceCreateNoteRequest._FinalStage
-
-