Class UpdateTicketRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.tickets.requests.UpdateTicketRequest.Builder
-
- All Implemented Interfaces:
UpdateTicketRequest._FinalStage,UpdateTicketRequest.TicketIdStage
- Enclosing class:
- UpdateTicketRequest
public static final class UpdateTicketRequest.Builder extends java.lang.Object implements UpdateTicketRequest.TicketIdStage, UpdateTicketRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateTicketRequest._FinalStageadminId(java.lang.Integer adminId)The ID of the admin performing ticket update.UpdateTicketRequest._FinalStageadminId(java.util.Optional<java.lang.Integer> adminId)The ID of the admin performing ticket update.UpdateTicketRequest._FinalStageassigneeId(java.lang.String assigneeId)The ID of the admin or team to which the ticket is assigned.UpdateTicketRequest._FinalStageassigneeId(java.util.Optional<java.lang.String> assigneeId)The ID of the admin or team to which the ticket is assigned.UpdateTicketRequestbuild()UpdateTicketRequest._FinalStagecompanyId(java.lang.String companyId)The ID of the company that the ticket is associated with.UpdateTicketRequest._FinalStagecompanyId(java.util.Optional<java.lang.String> companyId)The ID of the company that the ticket is associated with.UpdateTicketRequest.Builderfrom(UpdateTicketRequest other)UpdateTicketRequest._FinalStageisShared(java.lang.Boolean isShared)Specify whether the ticket is visible to users.UpdateTicketRequest._FinalStageisShared(java.util.Optional<java.lang.Boolean> isShared)Specify whether the ticket is visible to users.UpdateTicketRequest._FinalStageopen(java.lang.Boolean open)Specify if a ticket is open.UpdateTicketRequest._FinalStageopen(java.util.Optional<java.lang.Boolean> open)Specify if a ticket is open.UpdateTicketRequest._FinalStagesnoozedUntil(java.lang.Integer snoozedUntil)The time you want the ticket to reopen.UpdateTicketRequest._FinalStagesnoozedUntil(java.util.Optional<java.lang.Integer> snoozedUntil)The time you want the ticket to reopen.UpdateTicketRequest._FinalStageticketAttributes(java.util.Map<java.lang.String,java.lang.Object> ticketAttributes)The attributes set on the ticket.UpdateTicketRequest._FinalStageticketAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> ticketAttributes)The attributes set on the ticket.UpdateTicketRequest._FinalStageticketId(java.lang.String ticketId)The unique identifier for the ticket which is given by IntercomUpdateTicketRequest._FinalStageticketStateId(java.lang.String ticketStateId)The ID of the ticket state associated with the ticket type.UpdateTicketRequest._FinalStageticketStateId(java.util.Optional<java.lang.String> ticketStateId)The ID of the ticket state associated with the ticket type.
-
-
-
Method Detail
-
from
public UpdateTicketRequest.Builder from(UpdateTicketRequest other)
- Specified by:
fromin interfaceUpdateTicketRequest.TicketIdStage
-
ticketId
public UpdateTicketRequest._FinalStage ticketId(@NotNull java.lang.String ticketId)
The unique identifier for the ticket which is given by Intercom
The unique identifier for the ticket which is given by Intercom
- Specified by:
ticketIdin interfaceUpdateTicketRequest.TicketIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assigneeId
public UpdateTicketRequest._FinalStage assigneeId(java.lang.String assigneeId)
The ID of the admin or team to which the ticket is assigned. Set this 0 to unassign it.
- Specified by:
assigneeIdin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assigneeId
public UpdateTicketRequest._FinalStage assigneeId(java.util.Optional<java.lang.String> assigneeId)
The ID of the admin or team to which the ticket is assigned. Set this 0 to unassign it.
- Specified by:
assigneeIdin interfaceUpdateTicketRequest._FinalStage
-
adminId
public UpdateTicketRequest._FinalStage adminId(java.lang.Integer adminId)
The ID of the admin performing ticket update. Needed for workflows execution and attributing actions to specific admins.
- Specified by:
adminIdin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminId
public UpdateTicketRequest._FinalStage adminId(java.util.Optional<java.lang.Integer> adminId)
The ID of the admin performing ticket update. Needed for workflows execution and attributing actions to specific admins.
- Specified by:
adminIdin interfaceUpdateTicketRequest._FinalStage
-
snoozedUntil
public UpdateTicketRequest._FinalStage snoozedUntil(java.lang.Integer snoozedUntil)
The time you want the ticket to reopen.
- Specified by:
snoozedUntilin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
snoozedUntil
public UpdateTicketRequest._FinalStage snoozedUntil(java.util.Optional<java.lang.Integer> snoozedUntil)
The time you want the ticket to reopen.
- Specified by:
snoozedUntilin interfaceUpdateTicketRequest._FinalStage
-
isShared
public UpdateTicketRequest._FinalStage isShared(java.lang.Boolean isShared)
Specify whether the ticket is visible to users.
- Specified by:
isSharedin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isShared
public UpdateTicketRequest._FinalStage isShared(java.util.Optional<java.lang.Boolean> isShared)
Specify whether the ticket is visible to users.
- Specified by:
isSharedin interfaceUpdateTicketRequest._FinalStage
-
open
public UpdateTicketRequest._FinalStage open(java.lang.Boolean open)
Specify if a ticket is open. Set to false to close a ticket. Closing a ticket will also unsnooze it.
- Specified by:
openin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
open
public UpdateTicketRequest._FinalStage open(java.util.Optional<java.lang.Boolean> open)
Specify if a ticket is open. Set to false to close a ticket. Closing a ticket will also unsnooze it.
- Specified by:
openin interfaceUpdateTicketRequest._FinalStage
-
companyId
public UpdateTicketRequest._FinalStage companyId(java.lang.String companyId)
The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom. Set to nil to remove company.
- Specified by:
companyIdin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
public UpdateTicketRequest._FinalStage companyId(java.util.Optional<java.lang.String> companyId)
The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom. Set to nil to remove company.
- Specified by:
companyIdin interfaceUpdateTicketRequest._FinalStage
-
ticketStateId
public UpdateTicketRequest._FinalStage ticketStateId(java.lang.String ticketStateId)
The ID of the ticket state associated with the ticket type.
- Specified by:
ticketStateIdin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketStateId
public UpdateTicketRequest._FinalStage ticketStateId(java.util.Optional<java.lang.String> ticketStateId)
The ID of the ticket state associated with the ticket type.
- Specified by:
ticketStateIdin interfaceUpdateTicketRequest._FinalStage
-
ticketAttributes
public UpdateTicketRequest._FinalStage ticketAttributes(java.util.Map<java.lang.String,java.lang.Object> ticketAttributes)
The attributes set on the ticket.
- Specified by:
ticketAttributesin interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketAttributes
public UpdateTicketRequest._FinalStage ticketAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> ticketAttributes)
The attributes set on the ticket.
- Specified by:
ticketAttributesin interfaceUpdateTicketRequest._FinalStage
-
build
public UpdateTicketRequest build()
- Specified by:
buildin interfaceUpdateTicketRequest._FinalStage
-
-