Package com.intercom.api.types
Class NewsItemRequest.Builder
java.lang.Object
com.intercom.api.types.NewsItemRequest.Builder
- All Implemented Interfaces:
NewsItemRequest._FinalStage,NewsItemRequest.SenderIdStage,NewsItemRequest.TitleStage
- Enclosing class:
NewsItemRequest
public static final class NewsItemRequest.Builder
extends Object
implements NewsItemRequest.TitleStage, NewsItemRequest.SenderIdStage, NewsItemRequest._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionThe news item body, which may contain HTML.build()deliverSilently(Boolean deliverSilently) When set totrue, the news item will appear in the messenger newsfeed without showing a notification badge.deliverSilently(Optional<Boolean> deliverSilently) from(NewsItemRequest other) Label names displayed to users to categorize the news item.newsfeedAssignments(List<NewsfeedAssignment> newsfeedAssignments) A list of newsfeed_assignments to assign to the specified newsfeed.newsfeedAssignments(Optional<List<NewsfeedAssignment>> newsfeedAssignments) Ordered list of emoji reactions to the news item.senderId(int senderId) The id of the sender of the news item.state(NewsItemRequest.State state) News items will not be visible to your users in the assigned newsfeeds until they are set live.state(Optional<NewsItemRequest.State> state) The title of the news item.
-
Method Details
-
from
- Specified by:
fromin interfaceNewsItemRequest.TitleStage
-
title
The title of the news item.
- Specified by:
titlein interfaceNewsItemRequest.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
senderId
The id of the sender of the news item. Must be a teammate on the workspace.
- Specified by:
senderIdin interfaceNewsItemRequest.SenderIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
newsfeedAssignments
public NewsItemRequest._FinalStage newsfeedAssignments(List<NewsfeedAssignment> newsfeedAssignments) A list of newsfeed_assignments to assign to the specified newsfeed.
- Specified by:
newsfeedAssignmentsin interfaceNewsItemRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
newsfeedAssignments
public NewsItemRequest._FinalStage newsfeedAssignments(Optional<List<NewsfeedAssignment>> newsfeedAssignments) - Specified by:
newsfeedAssignmentsin interfaceNewsItemRequest._FinalStage
-
reactions
Ordered list of emoji reactions to the news item. When empty, reactions are disabled.
- Specified by:
reactionsin interfaceNewsItemRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
reactions
- Specified by:
reactionsin interfaceNewsItemRequest._FinalStage
-
labels
Label names displayed to users to categorize the news item.
- Specified by:
labelsin interfaceNewsItemRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
labels
- Specified by:
labelsin interfaceNewsItemRequest._FinalStage
-
deliverSilently
When set to
true, the news item will appear in the messenger newsfeed without showing a notification badge.- Specified by:
deliverSilentlyin interfaceNewsItemRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
deliverSilently
- Specified by:
deliverSilentlyin interfaceNewsItemRequest._FinalStage
-
state
News items will not be visible to your users in the assigned newsfeeds until they are set live.
- Specified by:
statein interfaceNewsItemRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
- Specified by:
statein interfaceNewsItemRequest._FinalStage
-
body
The news item body, which may contain HTML.
- Specified by:
bodyin interfaceNewsItemRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
body
- Specified by:
bodyin interfaceNewsItemRequest._FinalStage
-
build
- Specified by:
buildin interfaceNewsItemRequest._FinalStage
-