Package com.intercom.api.types
Class TicketList.Builder
- java.lang.Object
-
- com.intercom.api.types.TicketList.Builder
-
- All Implemented Interfaces:
TicketList._FinalStage,TicketList.TotalCountStage
- Enclosing class:
- TicketList
public static final class TicketList.Builder extends java.lang.Object implements TicketList.TotalCountStage, TicketList._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketList._FinalStageaddAllTickets(java.util.List<Ticket> tickets)The list of ticket objectsTicketList._FinalStageaddTickets(Ticket tickets)The list of ticket objectsTicketListbuild()TicketList.Builderfrom(TicketList other)TicketList._FinalStagepages(CursorPages pages)TicketList._FinalStagepages(java.util.Optional<CursorPages> pages)TicketList._FinalStagetickets(java.util.List<Ticket> tickets)The list of ticket objectsTicketList._FinalStagetotalCount(int totalCount)A count of the total number of objects.
-
-
-
Method Detail
-
from
public TicketList.Builder from(TicketList other)
- Specified by:
fromin interfaceTicketList.TotalCountStage
-
totalCount
public TicketList._FinalStage totalCount(int totalCount)
A count of the total number of objects.A count of the total number of objects.
- Specified by:
totalCountin interfaceTicketList.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pages
public TicketList._FinalStage pages(CursorPages pages)
- Specified by:
pagesin interfaceTicketList._FinalStage
-
pages
public TicketList._FinalStage pages(java.util.Optional<CursorPages> pages)
- Specified by:
pagesin interfaceTicketList._FinalStage
-
addAllTickets
public TicketList._FinalStage addAllTickets(java.util.List<Ticket> tickets)
The list of ticket objects
- Specified by:
addAllTicketsin interfaceTicketList._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTickets
public TicketList._FinalStage addTickets(Ticket tickets)
The list of ticket objects
- Specified by:
addTicketsin interfaceTicketList._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tickets
public TicketList._FinalStage tickets(java.util.List<Ticket> tickets)
The list of ticket objects
- Specified by:
ticketsin interfaceTicketList._FinalStage
-
build
public TicketList build()
- Specified by:
buildin interfaceTicketList._FinalStage
-
-