Class Article.Builder
- All Implemented Interfaces:
Article._FinalStage,Article.AuthorIdStage,Article.CreatedAtStage,Article.DefaultLocaleStage,Article.IdStage,Article.StateStage,Article.TitleStage,Article.TranslatedContentStage,Article.UpdatedAtStage,Article.WorkspaceIdStage
- Enclosing class:
Article
-
Method Summary
Modifier and TypeMethodDescriptionauthorId(int authorId) The id of the author of the article.The body of the article in HTML.build()createdAt(int createdAt) The time when the article was created.defaultLocale(String defaultLocale) The default locale of the help center.description(String description) The description of the article.description(Optional<String> description) The unique identifier for the article which is given by Intercom.The id of the article's parent collection or section.The ids of the article's parent collections or sections.parentType(String parentType) The type of parent, which can either be acollectionorsection.parentType(Optional<String> parentType) state(Article.State state) Whether the article ispublishedor is adraft.statistics(ArticleStatistics statistics) statistics(Optional<ArticleStatistics> statistics) The title of the article.translatedContent(ArticleTranslatedContent translatedContent) The type of object -article.updatedAt(int updatedAt) The time when the article was last updated.The URL of the article.workspaceId(String workspaceId) The id of the workspace which the article belongs to.
-
Method Details
-
from
- Specified by:
fromin interfaceArticle.IdStage
-
id
The unique identifier for the article which is given by Intercom.
- Specified by:
idin interfaceArticle.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
The id of the workspace which the article belongs to.
- Specified by:
workspaceIdin interfaceArticle.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
The title of the article. For multilingual articles, this will be the title of the default language's content.
- Specified by:
titlein interfaceArticle.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
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 interfaceArticle.AuthorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
Whether the article is
publishedor is adraft. For multilingual articles, this will be the state of the default language's content.- Specified by:
statein interfaceArticle.StateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The time when the article was created. For multilingual articles, this will be the timestamp of creation of the default language's content in seconds.
- Specified by:
createdAtin interfaceArticle.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
The time when the article was last updated. For multilingual articles, this will be the timestamp of last update of the default language's content in seconds.
- Specified by:
updatedAtin interfaceArticle.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
defaultLocale
The default locale of the help center. This field is only returned for multilingual help centers.
- Specified by:
defaultLocalein interfaceArticle.DefaultLocaleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
translatedContent
- Specified by:
translatedContentin interfaceArticle.TranslatedContentStage
-
statistics
- Specified by:
statisticsin interfaceArticle._FinalStage
-
statistics
- Specified by:
statisticsin interfaceArticle._FinalStage
-
parentType
The type of parent, which can either be a
collectionorsection.- Specified by:
parentTypein interfaceArticle._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentType
- Specified by:
parentTypein interfaceArticle._FinalStage
-
parentIds
The ids of the article's parent collections or sections. An article without this field stands alone.
- Specified by:
parentIdsin interfaceArticle._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentIds
- Specified by:
parentIdsin interfaceArticle._FinalStage
-
parentId
The id of the article's parent collection or section. An article without this field stands alone.
- Specified by:
parentIdin interfaceArticle._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
- Specified by:
parentIdin interfaceArticle._FinalStage
-
url
The URL of the article. For multilingual articles, this will be the URL of the default language's content.
- Specified by:
urlin interfaceArticle._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
- Specified by:
urlin interfaceArticle._FinalStage
-
body
The body of the article in HTML. For multilingual articles, this will be the body of the default language's content.
- Specified by:
bodyin interfaceArticle._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
- Specified by:
bodyin interfaceArticle._FinalStage
-
description
The description of the article. For multilingual articles, this will be the description of the default language's content.
- Specified by:
descriptionin interfaceArticle._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
- Specified by:
descriptionin interfaceArticle._FinalStage
-
type
The type of object -
article.- Specified by:
typein interfaceArticle._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
- Specified by:
typein interfaceArticle._FinalStage
-
build
- Specified by:
buildin interfaceArticle._FinalStage
-