Class NewsfeedAssignment.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.news.types.NewsfeedAssignment.Builder
-
- Enclosing class:
- NewsfeedAssignment
public static final class NewsfeedAssignment.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsfeedAssignmentbuild()NewsfeedAssignment.Builderfrom(NewsfeedAssignment other)NewsfeedAssignment.BuildernewsfeedId(java.lang.Integer newsfeedId)NewsfeedAssignment.BuildernewsfeedId(java.util.Optional<java.lang.Integer> newsfeedId)The unique identifier for the newsfeed which is given by Intercom.NewsfeedAssignment.BuilderpublishedAt(java.lang.Integer publishedAt)NewsfeedAssignment.BuilderpublishedAt(java.util.Optional<java.lang.Integer> publishedAt)Publish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g.
-
-
-
Method Detail
-
from
public NewsfeedAssignment.Builder from(NewsfeedAssignment other)
-
newsfeedId
public NewsfeedAssignment.Builder newsfeedId(java.util.Optional<java.lang.Integer> newsfeedId)
The unique identifier for the newsfeed which is given by Intercom. Publish dates cannot be in the future, to schedule news items use the dedicated feature in app (see this article).
-
newsfeedId
public NewsfeedAssignment.Builder newsfeedId(java.lang.Integer newsfeedId)
-
publishedAt
public NewsfeedAssignment.Builder publishedAt(java.util.Optional<java.lang.Integer> publishedAt)
Publish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g. when importing existing news items). On write, this field will be ignored if the news item state is "draft".
-
publishedAt
public NewsfeedAssignment.Builder publishedAt(java.lang.Integer publishedAt)
-
build
public NewsfeedAssignment build()
-
-