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._FinalStageassignment(UpdateTicketRequest.Assignment assignment)UpdateTicketRequest._FinalStageassignment(java.util.Optional<UpdateTicketRequest.Assignment> assignment)UpdateTicketRequestbuild()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._FinalStagestate(UpdateTicketRequest.State state)The state of the ticket.UpdateTicketRequest._FinalStagestate(java.util.Optional<UpdateTicketRequest.State> state)The state of the ticket.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 Intercom
-
-
-
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 IntercomThe 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.
-
assignment
public UpdateTicketRequest._FinalStage assignment(UpdateTicketRequest.Assignment assignment)
- Specified by:
assignmentin interfaceUpdateTicketRequest._FinalStage
-
assignment
public UpdateTicketRequest._FinalStage assignment(java.util.Optional<UpdateTicketRequest.Assignment> assignment)
- Specified by:
assignmentin 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
-
state
public UpdateTicketRequest._FinalStage state(UpdateTicketRequest.State state)
The state of the ticket.
- Specified by:
statein interfaceUpdateTicketRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public UpdateTicketRequest._FinalStage state(java.util.Optional<UpdateTicketRequest.State> state)
The state of the ticket.
- Specified by:
statein 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
-
-