Class ArticleListItem.Builder
- java.lang.Object
-
- com.intercom.api.resources.articles.types.ArticleListItem.Builder
-
- All Implemented Interfaces:
ArticleListItem._FinalStage,ArticleListItem.AuthorIdStage,ArticleListItem.CreatedAtStage,ArticleListItem.IdStage,ArticleListItem.StateStage,ArticleListItem.TitleStage,ArticleListItem.UpdatedAtStage,ArticleListItem.WorkspaceIdStage
- Enclosing class:
- ArticleListItem
public static final class ArticleListItem.Builder extends java.lang.Object implements ArticleListItem.IdStage, ArticleListItem.WorkspaceIdStage, ArticleListItem.TitleStage, ArticleListItem.AuthorIdStage, ArticleListItem.StateStage, ArticleListItem.CreatedAtStage, ArticleListItem.UpdatedAtStage, ArticleListItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArticleListItem.StateStageauthorId(int authorId)The id of the author of the article.ArticleListItem._FinalStagebody(java.lang.String body)The body of the article in HTML.ArticleListItem._FinalStagebody(java.util.Optional<java.lang.String> body)The body of the article in HTML.ArticleListItembuild()ArticleListItem.UpdatedAtStagecreatedAt(int createdAt)The time when the article was created.ArticleListItem._FinalStagedefaultLocale(java.lang.String defaultLocale)The default locale of the help center.ArticleListItem._FinalStagedefaultLocale(java.util.Optional<java.lang.String> defaultLocale)The default locale of the help center.ArticleListItem._FinalStagedescription(java.lang.String description)The description of the article.ArticleListItem._FinalStagedescription(java.util.Optional<java.lang.String> description)The description of the article.ArticleListItem.Builderfrom(ArticleListItem other)ArticleListItem.WorkspaceIdStageid(java.lang.String id)The unique identifier for the article which is given by Intercom.ArticleListItem._FinalStageparentId(java.lang.Integer parentId)The id of the article's parent collection or section.ArticleListItem._FinalStageparentId(java.util.Optional<java.lang.Integer> parentId)The id of the article's parent collection or section.ArticleListItem._FinalStageparentIds(java.util.List<java.lang.Integer> parentIds)The ids of the article's parent collections or sections.ArticleListItem._FinalStageparentIds(java.util.Optional<java.util.List<java.lang.Integer>> parentIds)The ids of the article's parent collections or sections.ArticleListItem._FinalStageparentType(java.lang.String parentType)The type of parent, which can either be acollectionorsection.ArticleListItem._FinalStageparentType(java.util.Optional<java.lang.String> parentType)The type of parent, which can either be acollectionorsection.ArticleListItem.CreatedAtStagestate(ArticleListItem.State state)Whether the article ispublishedor is adraft.ArticleListItem.AuthorIdStagetitle(java.lang.String title)The title of the article.ArticleListItem._FinalStagetranslatedContent(ArticleTranslatedContent translatedContent)ArticleListItem._FinalStagetranslatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)ArticleListItem._FinalStagetype(java.lang.String type)The type of object -article.ArticleListItem._FinalStagetype(java.util.Optional<java.lang.String> type)The type of object -article.ArticleListItem._FinalStageupdatedAt(int updatedAt)The time when the article was last updated.ArticleListItem._FinalStageurl(java.lang.String url)The URL of the article.ArticleListItem._FinalStageurl(java.util.Optional<java.lang.String> url)The URL of the article.ArticleListItem.TitleStageworkspaceId(java.lang.String workspaceId)The id of the workspace which the article belongs to.
-
-
-
Method Detail
-
from
public ArticleListItem.Builder from(ArticleListItem other)
- Specified by:
fromin interfaceArticleListItem.IdStage
-
id
public ArticleListItem.WorkspaceIdStage id(@NotNull java.lang.String id)
The unique identifier for the article which is given by Intercom.
The unique identifier for the article which is given by Intercom.
- Specified by:
idin interfaceArticleListItem.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
public ArticleListItem.TitleStage workspaceId(@NotNull java.lang.String workspaceId)
The id of the workspace which the article belongs to.
The id of the workspace which the article belongs to.
- Specified by:
workspaceIdin interfaceArticleListItem.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public ArticleListItem.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.
The title of the article. For multilingual articles, this will be the title of the default language's content.
- Specified by:
titlein interfaceArticleListItem.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorId
public ArticleListItem.StateStage 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.
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 interfaceArticleListItem.AuthorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public ArticleListItem.CreatedAtStage state(@NotNull ArticleListItem.State state)
Whether the article is
publishedor is adraft. For multilingual articles, this will be the state of the default language's content.Whether the article is
publishedor is adraft. For multilingual articles, this will be the state of the default language's content.- Specified by:
statein interfaceArticleListItem.StateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ArticleListItem.UpdatedAtStage createdAt(int 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.
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 interfaceArticleListItem.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public ArticleListItem._FinalStage updatedAt(int 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.
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 interfaceArticleListItem.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
translatedContent
public ArticleListItem._FinalStage translatedContent(ArticleTranslatedContent translatedContent)
- Specified by:
translatedContentin interfaceArticleListItem._FinalStage
-
translatedContent
public ArticleListItem._FinalStage translatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
- Specified by:
translatedContentin interfaceArticleListItem._FinalStage
-
defaultLocale
public ArticleListItem._FinalStage defaultLocale(java.lang.String defaultLocale)
The default locale of the help center. This field is only returned for multilingual help centers.
- Specified by:
defaultLocalein interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
defaultLocale
public ArticleListItem._FinalStage defaultLocale(java.util.Optional<java.lang.String> defaultLocale)
The default locale of the help center. This field is only returned for multilingual help centers.
- Specified by:
defaultLocalein interfaceArticleListItem._FinalStage
-
parentType
public ArticleListItem._FinalStage parentType(java.lang.String parentType)
The type of parent, which can either be a
collectionorsection.- Specified by:
parentTypein interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentType
public ArticleListItem._FinalStage parentType(java.util.Optional<java.lang.String> parentType)
The type of parent, which can either be a
collectionorsection.- Specified by:
parentTypein interfaceArticleListItem._FinalStage
-
parentIds
public ArticleListItem._FinalStage parentIds(java.util.List<java.lang.Integer> parentIds)
The ids of the article's parent collections or sections. An article without this field stands alone.
- Specified by:
parentIdsin interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentIds
public ArticleListItem._FinalStage parentIds(java.util.Optional<java.util.List<java.lang.Integer>> parentIds)
The ids of the article's parent collections or sections. An article without this field stands alone.
- Specified by:
parentIdsin interfaceArticleListItem._FinalStage
-
parentId
public ArticleListItem._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 interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
public ArticleListItem._FinalStage parentId(java.util.Optional<java.lang.Integer> parentId)
The id of the article's parent collection or section. An article without this field stands alone.
- Specified by:
parentIdin interfaceArticleListItem._FinalStage
-
url
public ArticleListItem._FinalStage url(java.lang.String url)
The URL of the article. For multilingual articles, this will be the URL of the default language's content.
- Specified by:
urlin interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public ArticleListItem._FinalStage url(java.util.Optional<java.lang.String> url)
The URL of the article. For multilingual articles, this will be the URL of the default language's content.
- Specified by:
urlin interfaceArticleListItem._FinalStage
-
body
public ArticleListItem._FinalStage body(java.lang.String 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 interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public ArticleListItem._FinalStage body(java.util.Optional<java.lang.String> 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 interfaceArticleListItem._FinalStage
-
description
public ArticleListItem._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 interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public ArticleListItem._FinalStage description(java.util.Optional<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 interfaceArticleListItem._FinalStage
-
type
public ArticleListItem._FinalStage type(java.lang.String type)
The type of object -
article.- Specified by:
typein interfaceArticleListItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public ArticleListItem._FinalStage type(java.util.Optional<java.lang.String> type)
The type of object -
article.- Specified by:
typein interfaceArticleListItem._FinalStage
-
build
public ArticleListItem build()
- Specified by:
buildin interfaceArticleListItem._FinalStage
-
-