Class TicketTypeAttribute.Builder
- All Implemented Interfaces:
TicketTypeAttribute._FinalStage,TicketTypeAttribute.ArchivedStage,TicketTypeAttribute.CreatedAtStage,TicketTypeAttribute.DataTypeStage,TicketTypeAttribute.DefaultStage,TicketTypeAttribute.DescriptionStage,TicketTypeAttribute.IdStage,TicketTypeAttribute.NameStage,TicketTypeAttribute.OrderStage,TicketTypeAttribute.RequiredToCreateForContactsStage,TicketTypeAttribute.RequiredToCreateStage,TicketTypeAttribute.TicketTypeIdStage,TicketTypeAttribute.VisibleOnCreateStage,TicketTypeAttribute.VisibleToContactsStage,TicketTypeAttribute.WorkspaceIdStage
- Enclosing class:
TicketTypeAttribute
-
Method Summary
Modifier and TypeMethodDescriptionarchived(boolean archived) Whether the ticket type attribute is archived or not.build()createdAt(int createdAt) The date and time the ticket type attribute was created.dataType(TicketTypeAttribute.DataType dataType) The type of the data attribute (allowed values: "string list integer decimal boolean datetime files")default_(boolean default_) Whether the attribute is built in or not.description(String description) The description of the ticket type attributefrom(TicketTypeAttribute other) The id representing the ticket type attribute.inputOptions(String key, Object value) Input options for the attributeinputOptions(Map<String, Object> inputOptions) The name of the ticket type attributeorder(int order) The order of the attribute against other attributesputAllInputOptions(Map<String, Object> inputOptions) Input options for the attributerequiredToCreate(boolean requiredToCreate) Whether the attribute is required or not for teammates.requiredToCreateForContacts(boolean requiredToCreateForContacts) Whether the attribute is required or not for contacts.ticketTypeId(int ticketTypeId) The id of the ticket type that the attribute belongs to.The date and time the ticket type attribute was last updated.visibleOnCreate(boolean visibleOnCreate) Whether the attribute is visible or not to teammates.visibleToContacts(boolean visibleToContacts) Whether the attribute is visible or not to contacts.workspaceId(String workspaceId) The id of the workspace that the ticket type attribute belongs to.
-
Method Details
-
from
- Specified by:
fromin interfaceTicketTypeAttribute.IdStage
-
id
The id representing the ticket type attribute.
- Specified by:
idin interfaceTicketTypeAttribute.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
The id of the workspace that the ticket type attribute belongs to.
- Specified by:
workspaceIdin interfaceTicketTypeAttribute.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
The name of the ticket type attribute
- Specified by:
namein interfaceTicketTypeAttribute.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
The description of the ticket type attribute
- Specified by:
descriptionin interfaceTicketTypeAttribute.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
The type of the data attribute (allowed values: "string list integer decimal boolean datetime files")
- Specified by:
dataTypein interfaceTicketTypeAttribute.DataTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
order
The order of the attribute against other attributes
- Specified by:
orderin interfaceTicketTypeAttribute.OrderStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
requiredToCreate
public TicketTypeAttribute.RequiredToCreateForContactsStage requiredToCreate(boolean requiredToCreate) Whether the attribute is required or not for teammates.
- Specified by:
requiredToCreatein interfaceTicketTypeAttribute.RequiredToCreateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
requiredToCreateForContacts
public TicketTypeAttribute.VisibleOnCreateStage requiredToCreateForContacts(boolean requiredToCreateForContacts) Whether the attribute is required or not for contacts.
- Specified by:
requiredToCreateForContactsin interfaceTicketTypeAttribute.RequiredToCreateForContactsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
visibleOnCreate
Whether the attribute is visible or not to teammates.
- Specified by:
visibleOnCreatein interfaceTicketTypeAttribute.VisibleOnCreateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
visibleToContacts
Whether the attribute is visible or not to contacts.
- Specified by:
visibleToContactsin interfaceTicketTypeAttribute.VisibleToContactsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
default_
Whether the attribute is built in or not.
- Specified by:
default_in interfaceTicketTypeAttribute.DefaultStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ticketTypeId
The id of the ticket type that the attribute belongs to.
- Specified by:
ticketTypeIdin interfaceTicketTypeAttribute.TicketTypeIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
archived
Whether the ticket type attribute is archived or not.
- Specified by:
archivedin interfaceTicketTypeAttribute.ArchivedStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The date and time the ticket type attribute was created.
- Specified by:
createdAtin interfaceTicketTypeAttribute.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
The date and time the ticket type attribute was last updated.
- Specified by:
updatedAtin interfaceTicketTypeAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
- Specified by:
updatedAtin interfaceTicketTypeAttribute._FinalStage
-
inputOptions
Input options for the attribute
- Specified by:
inputOptionsin interfaceTicketTypeAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
putAllInputOptions
Input options for the attribute
- Specified by:
putAllInputOptionsin interfaceTicketTypeAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputOptions
- Specified by:
inputOptionsin interfaceTicketTypeAttribute._FinalStage
-
build
- Specified by:
buildin interfaceTicketTypeAttribute._FinalStage
-