Class UpdateArticleRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.articles.requests.UpdateArticleRequest.Builder
-
- All Implemented Interfaces:
UpdateArticleRequest._FinalStage,UpdateArticleRequest.ArticleIdStage
- Enclosing class:
- UpdateArticleRequest
public static final class UpdateArticleRequest.Builder extends java.lang.Object implements UpdateArticleRequest.ArticleIdStage, UpdateArticleRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateArticleRequest._FinalStagearticleId(int articleId)The unique identifier for the article which is given by Intercom.UpdateArticleRequest._FinalStageauthorId(java.lang.Integer authorId)The id of the author of the article.UpdateArticleRequest._FinalStageauthorId(java.util.Optional<java.lang.Integer> authorId)The id of the author of the article.UpdateArticleRequest._FinalStagebody(java.lang.String body)The content of the article.UpdateArticleRequest._FinalStagebody(java.util.Optional<java.lang.String> body)The content of the article.UpdateArticleRequestbuild()UpdateArticleRequest._FinalStagedescription(java.lang.String description)The description of the article.UpdateArticleRequest._FinalStagedescription(java.util.Optional<java.lang.String> description)The description of the article.UpdateArticleRequest.Builderfrom(UpdateArticleRequest other)UpdateArticleRequest._FinalStageparentId(java.lang.String parentId)The id of the article's parent collection or section.UpdateArticleRequest._FinalStageparentId(java.util.Optional<java.lang.String> parentId)The id of the article's parent collection or section.UpdateArticleRequest._FinalStageparentType(java.lang.String parentType)The type of parent, which can either be acollectionorsection.UpdateArticleRequest._FinalStageparentType(java.util.Optional<java.lang.String> parentType)The type of parent, which can either be acollectionorsection.UpdateArticleRequest._FinalStagestate(UpdateArticleRequest.State state)Whether the article will bepublishedor will be adraft.UpdateArticleRequest._FinalStagestate(java.util.Optional<UpdateArticleRequest.State> state)Whether the article will bepublishedor will be adraft.UpdateArticleRequest._FinalStagetitle(java.lang.String title)The title of the article.For multilingual articles, this will be the title of the default language's content.UpdateArticleRequest._FinalStagetitle(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.UpdateArticleRequest._FinalStagetranslatedContent(ArticleTranslatedContent translatedContent)UpdateArticleRequest._FinalStagetranslatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
-
-
-
Method Detail
-
from
public UpdateArticleRequest.Builder from(UpdateArticleRequest other)
- Specified by:
fromin interfaceUpdateArticleRequest.ArticleIdStage
-
articleId
public UpdateArticleRequest._FinalStage articleId(int articleId)
The unique identifier for the article which is given by Intercom.
The unique identifier for the article which is given by Intercom.
- Specified by:
articleIdin interfaceUpdateArticleRequest.ArticleIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
translatedContent
public UpdateArticleRequest._FinalStage translatedContent(ArticleTranslatedContent translatedContent)
- Specified by:
translatedContentin interfaceUpdateArticleRequest._FinalStage
-
translatedContent
public UpdateArticleRequest._FinalStage translatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
- Specified by:
translatedContentin interfaceUpdateArticleRequest._FinalStage
-
parentType
public UpdateArticleRequest._FinalStage parentType(java.lang.String parentType)
The type of parent, which can either be a
collectionorsection.- Specified by:
parentTypein interfaceUpdateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentType
public UpdateArticleRequest._FinalStage parentType(java.util.Optional<java.lang.String> parentType)
The type of parent, which can either be a
collectionorsection.- Specified by:
parentTypein interfaceUpdateArticleRequest._FinalStage
-
parentId
public UpdateArticleRequest._FinalStage parentId(java.lang.String parentId)
The id of the article's parent collection or section. An article without this field stands alone.
- Specified by:
parentIdin interfaceUpdateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentId
public UpdateArticleRequest._FinalStage parentId(java.util.Optional<java.lang.String> parentId)
The id of the article's parent collection or section. An article without this field stands alone.
- Specified by:
parentIdin interfaceUpdateArticleRequest._FinalStage
-
state
public UpdateArticleRequest._FinalStage state(UpdateArticleRequest.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 interfaceUpdateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public UpdateArticleRequest._FinalStage state(java.util.Optional<UpdateArticleRequest.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 interfaceUpdateArticleRequest._FinalStage
-
authorId
public UpdateArticleRequest._FinalStage authorId(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.
- Specified by:
authorIdin interfaceUpdateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorId
public UpdateArticleRequest._FinalStage 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.
- Specified by:
authorIdin interfaceUpdateArticleRequest._FinalStage
-
body
public UpdateArticleRequest._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 interfaceUpdateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public UpdateArticleRequest._FinalStage body(java.util.Optional<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 interfaceUpdateArticleRequest._FinalStage
-
description
public UpdateArticleRequest._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 interfaceUpdateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public UpdateArticleRequest._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 interfaceUpdateArticleRequest._FinalStage
-
title
public UpdateArticleRequest._FinalStage title(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 interfaceUpdateArticleRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public UpdateArticleRequest._FinalStage 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.
- Specified by:
titlein interfaceUpdateArticleRequest._FinalStage
-
build
public UpdateArticleRequest build()
- Specified by:
buildin interfaceUpdateArticleRequest._FinalStage
-
-