Class UpdateArticleRequestBody.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.UpdateArticleRequestBody.Builder
-
- Enclosing class:
- UpdateArticleRequestBody
public static final class UpdateArticleRequestBody.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateArticleRequestBody.BuilderauthorId(java.lang.Integer authorId)UpdateArticleRequestBody.BuilderauthorId(java.util.Optional<java.lang.Integer> authorId)The id of the author of the article.UpdateArticleRequestBody.Builderbody(java.lang.String body)UpdateArticleRequestBody.Builderbody(java.util.Optional<java.lang.String> body)The content of the article.UpdateArticleRequestBodybuild()UpdateArticleRequestBody.Builderdescription(java.lang.String description)UpdateArticleRequestBody.Builderdescription(java.util.Optional<java.lang.String> description)The description of the article.UpdateArticleRequestBody.Builderfrom(UpdateArticleRequestBody other)UpdateArticleRequestBody.BuilderparentId(java.lang.String parentId)UpdateArticleRequestBody.BuilderparentId(java.util.Optional<java.lang.String> parentId)The id of the article's parent collection or section.UpdateArticleRequestBody.BuilderparentType(java.lang.String parentType)UpdateArticleRequestBody.BuilderparentType(java.util.Optional<java.lang.String> parentType)The type of parent, which can either be acollectionorsection.UpdateArticleRequestBody.Builderstate(UpdateArticleRequestBody.State state)UpdateArticleRequestBody.Builderstate(java.util.Optional<UpdateArticleRequestBody.State> state)Whether the article will bepublishedor will be adraft.UpdateArticleRequestBody.Buildertitle(java.lang.String title)UpdateArticleRequestBody.Buildertitle(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.UpdateArticleRequestBody.BuildertranslatedContent(ArticleTranslatedContent translatedContent)UpdateArticleRequestBody.BuildertranslatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
-
-
-
Method Detail
-
from
public UpdateArticleRequestBody.Builder from(UpdateArticleRequestBody other)
-
title
public UpdateArticleRequestBody.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 UpdateArticleRequestBody.Builder title(java.lang.String title)
-
description
public UpdateArticleRequestBody.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 UpdateArticleRequestBody.Builder description(java.lang.String description)
-
body
public UpdateArticleRequestBody.Builder 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.
-
body
public UpdateArticleRequestBody.Builder body(java.lang.String body)
-
authorId
public UpdateArticleRequestBody.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 UpdateArticleRequestBody.Builder authorId(java.lang.Integer authorId)
-
state
public UpdateArticleRequestBody.Builder state(java.util.Optional<UpdateArticleRequestBody.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.
-
state
public UpdateArticleRequestBody.Builder state(UpdateArticleRequestBody.State state)
-
parentId
public UpdateArticleRequestBody.Builder 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.
-
parentId
public UpdateArticleRequestBody.Builder parentId(java.lang.String parentId)
-
parentType
public UpdateArticleRequestBody.Builder parentType(java.util.Optional<java.lang.String> parentType)
The type of parent, which can either be a
collectionorsection.
-
parentType
public UpdateArticleRequestBody.Builder parentType(java.lang.String parentType)
-
translatedContent
public UpdateArticleRequestBody.Builder translatedContent(java.util.Optional<ArticleTranslatedContent> translatedContent)
-
translatedContent
public UpdateArticleRequestBody.Builder translatedContent(ArticleTranslatedContent translatedContent)
-
build
public UpdateArticleRequestBody build()
-
-