Package com.intercom.api.types
Class PaginatedNewsfeedResponse.Builder
- java.lang.Object
-
- com.intercom.api.types.PaginatedNewsfeedResponse.Builder
-
- All Implemented Interfaces:
PaginatedNewsfeedResponse._FinalStage,PaginatedNewsfeedResponse.TotalCountStage
- Enclosing class:
- PaginatedNewsfeedResponse
public static final class PaginatedNewsfeedResponse.Builder extends java.lang.Object implements PaginatedNewsfeedResponse.TotalCountStage, PaginatedNewsfeedResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginatedNewsfeedResponse._FinalStageaddAllData(java.util.List<Newsfeed> data)An array of NewsfeedsPaginatedNewsfeedResponse._FinalStageaddData(Newsfeed data)An array of NewsfeedsPaginatedNewsfeedResponsebuild()PaginatedNewsfeedResponse._FinalStagedata(java.util.List<Newsfeed> data)An array of NewsfeedsPaginatedNewsfeedResponse.Builderfrom(PaginatedNewsfeedResponse other)PaginatedNewsfeedResponse._FinalStagepages(CursorPages pages)PaginatedNewsfeedResponse._FinalStagepages(java.util.Optional<CursorPages> pages)PaginatedNewsfeedResponse._FinalStagetotalCount(int totalCount)A count of the total number of Newsfeeds.
-
-
-
Method Detail
-
from
public PaginatedNewsfeedResponse.Builder from(PaginatedNewsfeedResponse other)
- Specified by:
fromin interfacePaginatedNewsfeedResponse.TotalCountStage
-
totalCount
public PaginatedNewsfeedResponse._FinalStage totalCount(int totalCount)
A count of the total number of Newsfeeds.A count of the total number of Newsfeeds.
- Specified by:
totalCountin interfacePaginatedNewsfeedResponse.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllData
public PaginatedNewsfeedResponse._FinalStage addAllData(java.util.List<Newsfeed> data)
An array of Newsfeeds
- Specified by:
addAllDatain interfacePaginatedNewsfeedResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addData
public PaginatedNewsfeedResponse._FinalStage addData(Newsfeed data)
An array of Newsfeeds
- Specified by:
addDatain interfacePaginatedNewsfeedResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
data
public PaginatedNewsfeedResponse._FinalStage data(java.util.List<Newsfeed> data)
An array of Newsfeeds
- Specified by:
datain interfacePaginatedNewsfeedResponse._FinalStage
-
pages
public PaginatedNewsfeedResponse._FinalStage pages(CursorPages pages)
- Specified by:
pagesin interfacePaginatedNewsfeedResponse._FinalStage
-
pages
public PaginatedNewsfeedResponse._FinalStage pages(java.util.Optional<CursorPages> pages)
- Specified by:
pagesin interfacePaginatedNewsfeedResponse._FinalStage
-
build
public PaginatedNewsfeedResponse build()
- Specified by:
buildin interfacePaginatedNewsfeedResponse._FinalStage
-
-