Class ArticleListItem.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.articles.types.ArticleListItem.Builder
-
- Enclosing class:
- ArticleListItem
public static final class ArticleListItem.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArticleListItem.BuilderauthorId(java.lang.Integer authorId)ArticleListItem.BuilderauthorId(java.util.Optional<java.lang.Integer> authorId)The id of the author of the article.ArticleListItem.Builderbody(java.lang.String body)ArticleListItem.Builderbody(java.util.Optional<java.lang.String> body)The body of the article in HTML.ArticleListItembuild()ArticleListItem.BuildercreatedAt(java.lang.Integer createdAt)ArticleListItem.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time when the article was created.ArticleListItem.BuilderdefaultLocale(java.lang.String defaultLocale)ArticleListItem.BuilderdefaultLocale(java.util.Optional<java.lang.String> defaultLocale)The default locale of the help center.ArticleListItem.Builderdescription(java.lang.String description)ArticleListItem.Builderdescription(java.util.Optional<java.lang.String> description)The description of the article.ArticleListItem.Builderfrom(ArticleListItem other)ArticleListItem.Builderid(java.lang.String id)ArticleListItem.Builderid(java.util.Optional<java.lang.String> id)The unique identifier for the article which is given by Intercom.ArticleListItem.BuilderparentId(java.lang.Integer parentId)ArticleListItem.BuilderparentId(java.util.Optional<java.lang.Integer> parentId)The id of the article's parent collection or section.ArticleListItem.BuilderparentIds(java.util.List<java.lang.Integer> parentIds)ArticleListItem.BuilderparentIds(java.util.Optional<java.util.List<java.lang.Integer>> parentIds)The ids of the article's parent collections or sections.ArticleListItem.BuilderparentType(java.lang.String parentType)ArticleListItem.BuilderparentType(java.util.Optional<java.lang.String> parentType)The type of parent, which can either be acollectionorsection.ArticleListItem.Builderstate(ArticleListItem.State state)ArticleListItem.Builderstate(java.util.Optional<ArticleListItem.State> state)Whether the article ispublishedor is adraft.ArticleListItem.Buildertitle(java.lang.String title)ArticleListItem.Buildertitle(java.util.Optional<java.lang.String> title)The title of the article.ArticleListItem.BuildertranslatedContent(ArticleTranslatedContent translatedContent)ArticleListItem.BuildertranslatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)ArticleListItem.Buildertype(java.lang.String type)ArticleListItem.Buildertype(java.util.Optional<java.lang.String> type)The type of object -article.ArticleListItem.BuilderupdatedAt(java.lang.Integer updatedAt)ArticleListItem.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time when the article was last updated.ArticleListItem.Builderurl(java.lang.String url)ArticleListItem.Builderurl(java.util.Optional<java.lang.String> url)The URL of the article.ArticleListItem.BuilderworkspaceId(java.lang.String workspaceId)ArticleListItem.BuilderworkspaceId(java.util.Optional<java.lang.String> workspaceId)The id of the workspace which the article belongs to.
-
-
-
Method Detail
-
from
public ArticleListItem.Builder from(ArticleListItem other)
-
type
public ArticleListItem.Builder type(java.util.Optional<java.lang.String> type)
The type of object -
article.
-
type
public ArticleListItem.Builder type(java.lang.String type)
-
id
public ArticleListItem.Builder id(java.util.Optional<java.lang.String> id)
The unique identifier for the article which is given by Intercom.
-
id
public ArticleListItem.Builder id(java.lang.String id)
-
workspaceId
public ArticleListItem.Builder workspaceId(java.util.Optional<java.lang.String> workspaceId)
The id of the workspace which the article belongs to.
-
workspaceId
public ArticleListItem.Builder workspaceId(java.lang.String workspaceId)
-
title
public ArticleListItem.Builder title(java.util.Optional<java.lang.String> title)
The title of the article. For multilingual articles, this will be the title of the default language's content.
-
title
public ArticleListItem.Builder title(java.lang.String title)
-
description
public ArticleListItem.Builder 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.
-
description
public ArticleListItem.Builder description(java.lang.String description)
-
body
public ArticleListItem.Builder 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.
-
body
public ArticleListItem.Builder body(java.lang.String body)
-
authorId
public ArticleListItem.Builder authorId(java.util.Optional<java.lang.Integer> 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.
-
authorId
public ArticleListItem.Builder authorId(java.lang.Integer authorId)
-
state
public ArticleListItem.Builder state(java.util.Optional<ArticleListItem.State> state)
Whether the article is
publishedor is adraft. For multilingual articles, this will be the state of the default language's content.
-
state
public ArticleListItem.Builder state(ArticleListItem.State state)
-
createdAt
public ArticleListItem.Builder createdAt(java.util.Optional<java.lang.Integer> 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.
-
createdAt
public ArticleListItem.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public ArticleListItem.Builder updatedAt(java.util.Optional<java.lang.Integer> 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.
-
updatedAt
public ArticleListItem.Builder updatedAt(java.lang.Integer updatedAt)
-
url
public ArticleListItem.Builder 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.
-
url
public ArticleListItem.Builder url(java.lang.String url)
-
parentId
public ArticleListItem.Builder 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.
-
parentId
public ArticleListItem.Builder parentId(java.lang.Integer parentId)
-
parentIds
public ArticleListItem.Builder 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.
-
parentIds
public ArticleListItem.Builder parentIds(java.util.List<java.lang.Integer> parentIds)
-
parentType
public ArticleListItem.Builder parentType(java.util.Optional<java.lang.String> parentType)
The type of parent, which can either be a
collectionorsection.
-
parentType
public ArticleListItem.Builder parentType(java.lang.String parentType)
-
defaultLocale
public ArticleListItem.Builder defaultLocale(java.util.Optional<java.lang.String> defaultLocale)
The default locale of the help center. This field is only returned for multilingual help centers.
-
defaultLocale
public ArticleListItem.Builder defaultLocale(java.lang.String defaultLocale)
-
translatedContent
public ArticleListItem.Builder translatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
-
translatedContent
public ArticleListItem.Builder translatedContent(ArticleTranslatedContent translatedContent)
-
build
public ArticleListItem build()
-
-