Package com.intercom.api.types
Class ArticleContent.Builder
- java.lang.Object
-
- com.intercom.api.types.ArticleContent.Builder
-
- All Implemented Interfaces:
ArticleContent._FinalStage,ArticleContent.AuthorIdStage,ArticleContent.BodyStage,ArticleContent.DescriptionStage,ArticleContent.StateStage,ArticleContent.TitleStage
- Enclosing class:
- ArticleContent
public static final class ArticleContent.Builder extends java.lang.Object implements ArticleContent.TitleStage, ArticleContent.DescriptionStage, ArticleContent.BodyStage, ArticleContent.AuthorIdStage, ArticleContent.StateStage, ArticleContent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArticleContent.StateStageauthorId(int authorId)The ID of the author of the article.ArticleContent.AuthorIdStagebody(java.lang.String body)The body of the article.ArticleContentbuild()ArticleContent._FinalStagecreatedAt(java.lang.Integer createdAt)The time when the article was created (seconds).ArticleContent._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time when the article was created (seconds).ArticleContent.BodyStagedescription(java.lang.String description)The description of the article.ArticleContent.Builderfrom(ArticleContent other)ArticleContent._FinalStagestate(ArticleContent.State state)Whether the article is `published` or is a `draft` .ArticleContent.DescriptionStagetitle(java.lang.String title)The title of the article.ArticleContent._FinalStageupdatedAt(java.lang.Integer updatedAt)The time when the article was last updated (seconds).ArticleContent._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The time when the article was last updated (seconds).ArticleContent._FinalStageurl(java.lang.String url)The URL of the article.ArticleContent._FinalStageurl(java.util.Optional<java.lang.String> url)The URL of the article.
-
-
-
Method Detail
-
from
public ArticleContent.Builder from(ArticleContent other)
- Specified by:
fromin interfaceArticleContent.TitleStage
-
title
public ArticleContent.DescriptionStage title(@NotNull java.lang.String title)
The title of the article.The title of the article.
- Specified by:
titlein interfaceArticleContent.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public ArticleContent.BodyStage description(@NotNull java.lang.String description)
The description of the article.The description of the article.
- Specified by:
descriptionin interfaceArticleContent.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
public ArticleContent.AuthorIdStage body(@NotNull java.lang.String body)
The body of the article.The body of the article.
- Specified by:
bodyin interfaceArticleContent.BodyStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorId
public ArticleContent.StateStage authorId(int authorId)
The ID of the author of the article.The ID of the author of the article.
- Specified by:
authorIdin interfaceArticleContent.AuthorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public ArticleContent._FinalStage state(@NotNull ArticleContent.State state)
Whether the article is `published` or is a `draft` .Whether the article is
publishedor is adraft.- Specified by:
statein interfaceArticleContent.StateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public ArticleContent._FinalStage url(java.lang.String url)
The URL of the article.
- Specified by:
urlin interfaceArticleContent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public ArticleContent._FinalStage url(java.util.Optional<java.lang.String> url)
The URL of the article.
- Specified by:
urlin interfaceArticleContent._FinalStage
-
updatedAt
public ArticleContent._FinalStage updatedAt(java.lang.Integer updatedAt)
The time when the article was last updated (seconds).
- Specified by:
updatedAtin interfaceArticleContent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public ArticleContent._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The time when the article was last updated (seconds).
- Specified by:
updatedAtin interfaceArticleContent._FinalStage
-
createdAt
public ArticleContent._FinalStage createdAt(java.lang.Integer createdAt)
The time when the article was created (seconds).
- Specified by:
createdAtin interfaceArticleContent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public ArticleContent._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time when the article was created (seconds).
- Specified by:
createdAtin interfaceArticleContent._FinalStage
-
build
public ArticleContent build()
- Specified by:
buildin interfaceArticleContent._FinalStage
-
-