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