Class CreateInternalArticleRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.CreateInternalArticleRequest.Builder
-
- All Implemented Interfaces:
CreateInternalArticleRequest._FinalStage,CreateInternalArticleRequest.AuthorIdStage,CreateInternalArticleRequest.OwnerIdStage,CreateInternalArticleRequest.TitleStage
- Enclosing class:
- CreateInternalArticleRequest
public static final class CreateInternalArticleRequest.Builder extends java.lang.Object implements CreateInternalArticleRequest.TitleStage, CreateInternalArticleRequest.AuthorIdStage, CreateInternalArticleRequest.OwnerIdStage, CreateInternalArticleRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateInternalArticleRequest.OwnerIdStageauthorId(int authorId)The id of the author of the article.CreateInternalArticleRequest._FinalStagebody(java.lang.String body)The content of the article.CreateInternalArticleRequest._FinalStagebody(java.util.Optional<java.lang.String> body)The content of the article.CreateInternalArticleRequestbuild()CreateInternalArticleRequest.Builderfrom(CreateInternalArticleRequest other)CreateInternalArticleRequest._FinalStageownerId(int ownerId)The id of the owner of the article.CreateInternalArticleRequest.AuthorIdStagetitle(java.lang.String title)The title of the article.
-
-
-
Method Detail
-
from
public CreateInternalArticleRequest.Builder from(CreateInternalArticleRequest other)
- Specified by:
fromin interfaceCreateInternalArticleRequest.TitleStage
-
title
public CreateInternalArticleRequest.AuthorIdStage title(@NotNull java.lang.String title)
The title of the article.
The title of the article.
- Specified by:
titlein interfaceCreateInternalArticleRequest.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorId
public CreateInternalArticleRequest.OwnerIdStage authorId(int authorId)
The id of the author of the article.
The id of the author of the article.
- Specified by:
authorIdin interfaceCreateInternalArticleRequest.AuthorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ownerId
public CreateInternalArticleRequest._FinalStage ownerId(int ownerId)
The id of the owner of the article.
The id of the owner of the article.
- Specified by:
ownerIdin interfaceCreateInternalArticleRequest.OwnerIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public CreateInternalArticleRequest._FinalStage body(java.lang.String body)
The content of the article.
- Specified by:
bodyin interfaceCreateInternalArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public CreateInternalArticleRequest._FinalStage body(java.util.Optional<java.lang.String> body)
The content of the article.
- Specified by:
bodyin interfaceCreateInternalArticleRequest._FinalStage
-
build
public CreateInternalArticleRequest build()
- Specified by:
buildin interfaceCreateInternalArticleRequest._FinalStage
-
-