Class ArticleContent.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.ArticleContent.Builder
-
- Enclosing class:
- ArticleContent
public static final class ArticleContent.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArticleContent.BuilderauthorId(java.lang.Integer authorId)ArticleContent.BuilderauthorId(java.util.Optional<java.lang.Integer> authorId)The ID of the author of the article.ArticleContent.Builderbody(java.lang.String body)ArticleContent.Builderbody(java.util.Optional<java.lang.String> body)The body of the article.ArticleContentbuild()ArticleContent.BuildercreatedAt(java.lang.Integer createdAt)ArticleContent.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time when the article was created (seconds).ArticleContent.Builderdescription(java.lang.String description)ArticleContent.Builderdescription(java.util.Optional<java.lang.String> description)The description of the article.ArticleContent.Builderfrom(ArticleContent other)ArticleContent.Builderstate(ArticleContent.State state)ArticleContent.Builderstate(java.util.Optional<ArticleContent.State> state)Whether the article ispublishedor is adraft.ArticleContent.Buildertitle(java.lang.String title)ArticleContent.Buildertitle(java.util.Optional<java.lang.String> title)The title of the article.ArticleContent.Buildertype(java.lang.String type)ArticleContent.Buildertype(java.util.Optional<java.lang.String> type)The type of object -article_content.ArticleContent.BuilderupdatedAt(java.lang.Integer updatedAt)ArticleContent.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time when the article was last updated (seconds).ArticleContent.Builderurl(java.lang.String url)ArticleContent.Builderurl(java.util.Optional<java.lang.String> url)The URL of the article.
-
-
-
Method Detail
-
from
public ArticleContent.Builder from(ArticleContent other)
-
type
public ArticleContent.Builder type(java.util.Optional<java.lang.String> type)
The type of object -
article_content.
-
type
public ArticleContent.Builder type(java.lang.String type)
-
title
public ArticleContent.Builder title(java.util.Optional<java.lang.String> title)
The title of the article.
-
title
public ArticleContent.Builder title(java.lang.String title)
-
description
public ArticleContent.Builder description(java.util.Optional<java.lang.String> description)
The description of the article.
-
description
public ArticleContent.Builder description(java.lang.String description)
-
body
public ArticleContent.Builder body(java.util.Optional<java.lang.String> body)
The body of the article.
-
body
public ArticleContent.Builder body(java.lang.String body)
-
authorId
public ArticleContent.Builder authorId(java.util.Optional<java.lang.Integer> authorId)
The ID of the author of the article.
-
authorId
public ArticleContent.Builder authorId(java.lang.Integer authorId)
-
state
public ArticleContent.Builder state(java.util.Optional<ArticleContent.State> state)
Whether the article is
publishedor is adraft.
-
state
public ArticleContent.Builder state(ArticleContent.State state)
-
createdAt
public ArticleContent.Builder createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time when the article was created (seconds).
-
createdAt
public ArticleContent.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public ArticleContent.Builder updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The time when the article was last updated (seconds).
-
updatedAt
public ArticleContent.Builder updatedAt(java.lang.Integer updatedAt)
-
url
public ArticleContent.Builder url(java.util.Optional<java.lang.String> url)
The URL of the article.
-
url
public ArticleContent.Builder url(java.lang.String url)
-
build
public ArticleContent build()
-
-