Class NewsfeedAssignment.Builder
java.lang.Object
com.intercom.api.resources.news.types.NewsfeedAssignment.Builder
- All Implemented Interfaces:
NewsfeedAssignment._FinalStage,NewsfeedAssignment.NewsfeedIdStage,NewsfeedAssignment.PublishedAtStage
- Enclosing class:
NewsfeedAssignment
public static final class NewsfeedAssignment.Builder
extends Object
implements NewsfeedAssignment.NewsfeedIdStage, NewsfeedAssignment.PublishedAtStage, NewsfeedAssignment._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()from(NewsfeedAssignment other) newsfeedId(int newsfeedId) The unique identifier for the newsfeed which is given by Intercom.publishedAt(int 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 Details
-
from
- Specified by:
fromin interfaceNewsfeedAssignment.NewsfeedIdStage
-
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).
- Specified by:
newsfeedIdin interfaceNewsfeedAssignment.NewsfeedIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
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".
- Specified by:
publishedAtin interfaceNewsfeedAssignment.PublishedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
- Specified by:
buildin interfaceNewsfeedAssignment._FinalStage
-