Class CreateArticleRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.articles.requests.CreateArticleRequest.Builder
-
- All Implemented Interfaces:
CreateArticleRequest._FinalStage,CreateArticleRequest.AuthorIdStage,CreateArticleRequest.TitleStage
- Enclosing class:
- CreateArticleRequest
public static final class CreateArticleRequest.Builder extends java.lang.Object implements CreateArticleRequest.TitleStage, CreateArticleRequest.AuthorIdStage, CreateArticleRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateArticleRequest._FinalStageauthorId(int authorId)The id of the author of the article.CreateArticleRequest._FinalStagebody(java.lang.String body)The content of the article.CreateArticleRequest._FinalStagebody(java.util.Optional<java.lang.String> body)CreateArticleRequestbuild()CreateArticleRequest._FinalStagedescription(java.lang.String description)The description of the article.CreateArticleRequest._FinalStagedescription(java.util.Optional<java.lang.String> description)CreateArticleRequest.Builderfrom(CreateArticleRequest other)CreateArticleRequest._FinalStageparentId(java.lang.Integer parentId)The id of the article's parent collection or section.CreateArticleRequest._FinalStageparentId(java.util.Optional<java.lang.Integer> parentId)CreateArticleRequest._FinalStageparentType(CreateArticleRequest.ParentType parentType)The type of parent, which can either be acollectionorsection.CreateArticleRequest._FinalStageparentType(java.util.Optional<CreateArticleRequest.ParentType> parentType)CreateArticleRequest._FinalStagestate(CreateArticleRequest.State state)Whether the article will bepublishedor will be adraft.CreateArticleRequest._FinalStagestate(java.util.Optional<CreateArticleRequest.State> state)CreateArticleRequest.AuthorIdStagetitle(java.lang.String title)The title of the article.For multilingual articles, this will be the title of the default language's content.CreateArticleRequest._FinalStagetranslatedContent(ArticleTranslatedContent translatedContent)CreateArticleRequest._FinalStagetranslatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
-
-
-
Method Detail
-
from
public CreateArticleRequest.Builder from(CreateArticleRequest other)
- Specified by:
fromin interfaceCreateArticleRequest.TitleStage
-
title
public CreateArticleRequest.AuthorIdStage title(@NotNull java.lang.String title)
The title of the article.For multilingual articles, this will be the title of the default language's content.
- Specified by:
titlein interfaceCreateArticleRequest.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorId
public CreateArticleRequest._FinalStage authorId(int authorId)
The id of the author of the article. For multilingual articles, this will be the id of the author of the default language's content. Must be a teammate on the help center's workspace.
- Specified by:
authorIdin interfaceCreateArticleRequest.AuthorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
translatedContent
public CreateArticleRequest._FinalStage translatedContent(ArticleTranslatedContent translatedContent)
- Specified by:
translatedContentin interfaceCreateArticleRequest._FinalStage
-
translatedContent
public CreateArticleRequest._FinalStage translatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
- Specified by:
translatedContentin interfaceCreateArticleRequest._FinalStage
-
parentType
public CreateArticleRequest._FinalStage parentType(CreateArticleRequest.ParentType parentType)
The type of parent, which can either be a
collectionorsection.- Specified by:
parentTypein interfaceCreateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentType
public CreateArticleRequest._FinalStage parentType(java.util.Optional<CreateArticleRequest.ParentType> parentType)
- Specified by:
parentTypein interfaceCreateArticleRequest._FinalStage
-
parentId
public CreateArticleRequest._FinalStage parentId(java.lang.Integer parentId)
The id of the article's parent collection or section. An article without this field stands alone.
- Specified by:
parentIdin interfaceCreateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
public CreateArticleRequest._FinalStage parentId(java.util.Optional<java.lang.Integer> parentId)
- Specified by:
parentIdin interfaceCreateArticleRequest._FinalStage
-
state
public CreateArticleRequest._FinalStage state(CreateArticleRequest.State state)
Whether the article will be
publishedor will be adraft. Defaults to draft. For multilingual articles, this will be the state of the default language's content.- Specified by:
statein interfaceCreateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public CreateArticleRequest._FinalStage state(java.util.Optional<CreateArticleRequest.State> state)
- Specified by:
statein interfaceCreateArticleRequest._FinalStage
-
body
public CreateArticleRequest._FinalStage body(java.lang.String body)
The content of the article. For multilingual articles, this will be the body of the default language's content.
- Specified by:
bodyin interfaceCreateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public CreateArticleRequest._FinalStage body(java.util.Optional<java.lang.String> body)
- Specified by:
bodyin interfaceCreateArticleRequest._FinalStage
-
description
public CreateArticleRequest._FinalStage description(java.lang.String description)
The description of the article. For multilingual articles, this will be the description of the default language's content.
- Specified by:
descriptionin interfaceCreateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public CreateArticleRequest._FinalStage description(java.util.Optional<java.lang.String> description)
- Specified by:
descriptionin interfaceCreateArticleRequest._FinalStage
-
build
public CreateArticleRequest build()
- Specified by:
buildin interfaceCreateArticleRequest._FinalStage
-
-