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 java.lang.Object implements TicketType.IdStage, TicketType.CategoryStage, TicketType.NameStage, TicketType.DescriptionStage, TicketType.IconStage, TicketType.WorkspaceIdStage, TicketType.TicketTypeAttributesStage, TicketType.ArchivedStage, TicketType.CreatedAtStage, TicketType._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketType.CreatedAtStagearchived(boolean archived)Whether the ticket type is archived or not.TicketTypebuild()TicketType.NameStagecategory(TicketType.Category category)Category of the Ticket Type.TicketType._FinalStagecreatedAt(int createdAt)The date and time the ticket type was created.TicketType.IconStagedescription(java.lang.String description)The description of the ticket typeTicketType.Builderfrom(TicketType other)TicketType.WorkspaceIdStageicon(java.lang.String icon)The icon of the ticket typeTicketType.CategoryStageid(java.lang.String id)The id representing the ticket type.TicketType.DescriptionStagename(java.lang.String name)The name of the ticket typeTicketType.ArchivedStageticketTypeAttributes(TicketTypeAttributeList ticketTypeAttributes)TicketType._FinalStageupdatedAt(java.lang.Integer updatedAt)The date and time the ticket type was last updated.TicketType._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The date and time the ticket type was last updated.TicketType.TicketTypeAttributesStageworkspaceId(java.lang.String workspaceId)The id of the workspace that the ticket type belongs to.
-
-
-
Method Detail
-
from
public TicketType.Builder from(TicketType other)
- Specified by:
fromin interfaceTicketType.IdStage
-
id
public TicketType.CategoryStage id(@NotNull java.lang.String id)
The id representing the ticket type.The id representing the ticket type.
- Specified by:
idin interfaceTicketType.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
category
public TicketType.NameStage category(@NotNull TicketType.Category category)
Category of the Ticket Type.Category of the Ticket Type.
- Specified by:
categoryin interfaceTicketType.CategoryStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public TicketType.DescriptionStage name(@NotNull java.lang.String name)
The name of the ticket typeThe name of the ticket type
- Specified by:
namein interfaceTicketType.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public TicketType.IconStage description(@NotNull java.lang.String description)
The description of the ticket typeThe description of the ticket type
- Specified by:
descriptionin interfaceTicketType.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
icon
public TicketType.WorkspaceIdStage icon(@NotNull java.lang.String icon)
The icon of the ticket typeThe icon of the ticket type
- Specified by:
iconin interfaceTicketType.IconStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
public TicketType.TicketTypeAttributesStage workspaceId(@NotNull java.lang.String workspaceId)
The id of the workspace that the ticket type belongs to.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
public TicketType.CreatedAtStage archived(boolean archived)
Whether the ticket type is archived or not.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
public TicketType._FinalStage createdAt(int createdAt)
The date and time the ticket type was created.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
public TicketType._FinalStage updatedAt(java.lang.Integer 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
public TicketType._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The date and time the ticket type was last updated.
- Specified by:
updatedAtin interfaceTicketType._FinalStage
-
build
public TicketType build()
- Specified by:
buildin interfaceTicketType._FinalStage
-
-