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