Class TicketType.Builder
java.lang.Object
com.intercom.api.resources.tickets.types.TicketType.Builder
- All Implemented Interfaces:
TicketType._FinalStage,TicketType.ArchivedStage,TicketType.CategoryStage,TicketType.CreatedAtStage,TicketType.DescriptionStage,TicketType.IconStage,TicketType.IdStage,TicketType.NameStage,TicketType.TicketTypeAttributesStage,TicketType.WorkspaceIdStage
- Enclosing class:
TicketType
public static final class TicketType.Builder
extends Object
implements TicketType.IdStage, TicketType.CategoryStage, TicketType.NameStage, TicketType.DescriptionStage, TicketType.IconStage, TicketType.WorkspaceIdStage, TicketType.TicketTypeAttributesStage, TicketType.ArchivedStage, TicketType.CreatedAtStage, TicketType._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionarchived(boolean archived) Whether the ticket type is archived or not.build()category(TicketType.Category category) Category of the Ticket Type.createdAt(int createdAt) The date and time the ticket type was created.description(String description) The description of the ticket typefrom(TicketType other) The icon of the ticket typeThe id representing the ticket type.The name of the ticket typeticketTypeAttributes(TicketTypeAttributeList ticketTypeAttributes) The date and time the ticket type was last updated.workspaceId(String workspaceId) The id of the workspace that the ticket type belongs to.
-
Method Details
-
from
- Specified by:
fromin interfaceTicketType.IdStage
-
id
The id representing the ticket type.
- Specified by:
idin interfaceTicketType.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
category
Category of the Ticket Type.
- Specified by:
categoryin interfaceTicketType.CategoryStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
The name of the ticket type
- Specified by:
namein interfaceTicketType.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
The description of the ticket type
- Specified by:
descriptionin interfaceTicketType.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
icon
The icon of the ticket type
- Specified by:
iconin interfaceTicketType.IconStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
The id of the workspace that the ticket type belongs to.
- Specified by:
workspaceIdin interfaceTicketType.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketTypeAttributes
public TicketType.ArchivedStage ticketTypeAttributes(@NotNull TicketTypeAttributeList ticketTypeAttributes) - Specified by:
ticketTypeAttributesin interfaceTicketType.TicketTypeAttributesStage
-
archived
Whether the ticket type is archived or not.
- Specified by:
archivedin interfaceTicketType.ArchivedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The date and time the ticket type was created.
- Specified by:
createdAtin interfaceTicketType.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
The date and time the ticket type was last updated.
- Specified by:
updatedAtin interfaceTicketType._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
- Specified by:
updatedAtin interfaceTicketType._FinalStage
-
build
- Specified by:
buildin interfaceTicketType._FinalStage
-