Class TicketType.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.tickets.types.TicketType.Builder
-
- Enclosing class:
- TicketType
public static final class TicketType.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketType.Builderarchived(java.lang.Boolean archived)TicketType.Builderarchived(java.util.Optional<java.lang.Boolean> archived)Whether the ticket type is archived or not.TicketTypebuild()TicketType.Buildercategory(TicketType.Category category)TicketType.Buildercategory(java.util.Optional<TicketType.Category> category)Category of the Ticket Type.TicketType.BuildercreatedAt(java.lang.Integer createdAt)TicketType.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)The date and time the ticket type was created.TicketType.Builderdescription(java.lang.String description)TicketType.Builderdescription(java.util.Optional<java.lang.String> description)The description of the ticket typeTicketType.Builderfrom(TicketType other)TicketType.Buildericon(java.lang.String icon)TicketType.Buildericon(java.util.Optional<java.lang.String> icon)The icon of the ticket typeTicketType.Builderid(java.lang.String id)TicketType.Builderid(java.util.Optional<java.lang.String> id)The id representing the ticket type.TicketType.Buildername(java.lang.String name)TicketType.Buildername(java.util.Optional<java.lang.String> name)The name of the ticket typeTicketType.BuilderticketStates(TicketType.TicketStates ticketStates)TicketType.BuilderticketStates(java.util.Optional<TicketType.TicketStates> ticketStates)A list of ticket states associated with a given ticket type.TicketType.BuilderticketTypeAttributes(TicketTypeAttributeList ticketTypeAttributes)TicketType.BuilderticketTypeAttributes(java.util.Optional<TicketTypeAttributeList> ticketTypeAttributes)TicketType.Buildertype(java.lang.String type)TicketType.Buildertype(java.util.Optional<java.lang.String> type)String representing the object's type.TicketType.BuilderupdatedAt(java.lang.Integer updatedAt)TicketType.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The date and time the ticket type was last updated.TicketType.BuilderworkspaceId(java.lang.String workspaceId)TicketType.BuilderworkspaceId(java.util.Optional<java.lang.String> workspaceId)The id of the workspace that the ticket type belongs to.
-
-
-
Method Detail
-
from
public TicketType.Builder from(TicketType other)
-
type
public TicketType.Builder type(java.util.Optional<java.lang.String> type)
String representing the object's type. Always has the value
ticket_type.
-
type
public TicketType.Builder type(java.lang.String type)
-
id
public TicketType.Builder id(java.util.Optional<java.lang.String> id)
The id representing the ticket type.
-
id
public TicketType.Builder id(java.lang.String id)
-
category
public TicketType.Builder category(java.util.Optional<TicketType.Category> category)
Category of the Ticket Type.
-
category
public TicketType.Builder category(TicketType.Category category)
-
name
public TicketType.Builder name(java.util.Optional<java.lang.String> name)
The name of the ticket type
-
name
public TicketType.Builder name(java.lang.String name)
-
description
public TicketType.Builder description(java.util.Optional<java.lang.String> description)
The description of the ticket type
-
description
public TicketType.Builder description(java.lang.String description)
-
icon
public TicketType.Builder icon(java.util.Optional<java.lang.String> icon)
The icon of the ticket type
-
icon
public TicketType.Builder icon(java.lang.String icon)
-
workspaceId
public TicketType.Builder workspaceId(java.util.Optional<java.lang.String> workspaceId)
The id of the workspace that the ticket type belongs to.
-
workspaceId
public TicketType.Builder workspaceId(java.lang.String workspaceId)
-
ticketTypeAttributes
public TicketType.Builder ticketTypeAttributes(java.util.Optional<TicketTypeAttributeList> ticketTypeAttributes)
-
ticketTypeAttributes
public TicketType.Builder ticketTypeAttributes(TicketTypeAttributeList ticketTypeAttributes)
-
ticketStates
public TicketType.Builder ticketStates(java.util.Optional<TicketType.TicketStates> ticketStates)
A list of ticket states associated with a given ticket type.
-
ticketStates
public TicketType.Builder ticketStates(TicketType.TicketStates ticketStates)
-
archived
public TicketType.Builder archived(java.util.Optional<java.lang.Boolean> archived)
Whether the ticket type is archived or not.
-
archived
public TicketType.Builder archived(java.lang.Boolean archived)
-
createdAt
public TicketType.Builder createdAt(java.util.Optional<java.lang.Integer> createdAt)
The date and time the ticket type was created.
-
createdAt
public TicketType.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public TicketType.Builder updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The date and time the ticket type was last updated.
-
updatedAt
public TicketType.Builder updatedAt(java.lang.Integer updatedAt)
-
build
public TicketType build()
-
-