Class Newsfeed.Builder
- java.lang.Object
-
- com.intercom.api.resources.news.types.Newsfeed.Builder
-
- All Implemented Interfaces:
Newsfeed._FinalStage,Newsfeed.CreatedAtStage,Newsfeed.IdStage,Newsfeed.NameStage
- Enclosing class:
- Newsfeed
public static final class Newsfeed.Builder extends java.lang.Object implements Newsfeed.IdStage, Newsfeed.NameStage, Newsfeed.CreatedAtStage, Newsfeed._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Newsfeedbuild()Newsfeed._FinalStagecreatedAt(int createdAt)Timestamp for when the newsfeed was created.Newsfeed.Builderfrom(Newsfeed other)Newsfeed.NameStageid(java.lang.String id)The unique identifier for the newsfeed which is given by Intercom.Newsfeed.CreatedAtStagename(java.lang.String name)The name of the newsfeed.Newsfeed._FinalStageupdatedAt(java.lang.Integer updatedAt)Timestamp for when the newsfeed was last updated.Newsfeed._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)Timestamp for when the newsfeed was last updated.
-
-
-
Method Detail
-
from
public Newsfeed.Builder from(Newsfeed other)
- Specified by:
fromin interfaceNewsfeed.IdStage
-
id
public Newsfeed.NameStage id(@NotNull java.lang.String id)
The unique identifier for the newsfeed which is given by Intercom.The unique identifier for the newsfeed which is given by Intercom.
- Specified by:
idin interfaceNewsfeed.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Newsfeed.CreatedAtStage name(@NotNull java.lang.String name)
The name of the newsfeed. This name will never be visible to your users.The name of the newsfeed. This name will never be visible to your users.
- Specified by:
namein interfaceNewsfeed.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Newsfeed._FinalStage createdAt(int createdAt)
Timestamp for when the newsfeed was created.Timestamp for when the newsfeed was created.
- Specified by:
createdAtin interfaceNewsfeed.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Newsfeed._FinalStage updatedAt(java.lang.Integer updatedAt)
Timestamp for when the newsfeed was last updated.
- Specified by:
updatedAtin interfaceNewsfeed._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Newsfeed._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
Timestamp for when the newsfeed was last updated.
- Specified by:
updatedAtin interfaceNewsfeed._FinalStage
-
build
public Newsfeed build()
- Specified by:
buildin interfaceNewsfeed._FinalStage
-
-