Class TicketTypeAttribute.Builder
- java.lang.Object
-
- com.intercom.api.types.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
public static final class TicketTypeAttribute.Builder extends java.lang.Object implements TicketTypeAttribute.IdStage, TicketTypeAttribute.WorkspaceIdStage, TicketTypeAttribute.NameStage, TicketTypeAttribute.DescriptionStage, TicketTypeAttribute.DataTypeStage, TicketTypeAttribute.OrderStage, TicketTypeAttribute.RequiredToCreateStage, TicketTypeAttribute.RequiredToCreateForContactsStage, TicketTypeAttribute.VisibleOnCreateStage, TicketTypeAttribute.VisibleToContactsStage, TicketTypeAttribute.DefaultStage, TicketTypeAttribute.TicketTypeIdStage, TicketTypeAttribute.ArchivedStage, TicketTypeAttribute.CreatedAtStage, TicketTypeAttribute._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketTypeAttribute.CreatedAtStagearchived(boolean archived)Whether the ticket type attribute is archived or not.TicketTypeAttributebuild()TicketTypeAttribute._FinalStagecreatedAt(int createdAt)The date and time the ticket type attribute was created.TicketTypeAttribute.OrderStagedataType(TicketTypeAttribute.DataType dataType)The type of the data attribute (allowed values: "string list integer decimal boolean datetime files")TicketTypeAttribute.TicketTypeIdStagedefault_(boolean default_)Whether the attribute is built in or not.TicketTypeAttribute.DataTypeStagedescription(java.lang.String description)The description of the ticket type attributeTicketTypeAttribute.Builderfrom(TicketTypeAttribute other)TicketTypeAttribute.WorkspaceIdStageid(java.lang.String id)The id representing the ticket type attribute.TicketTypeAttribute._FinalStageinputOptions(java.lang.String key, java.lang.Object value)Input options for the attributeTicketTypeAttribute._FinalStageinputOptions(java.util.Map<java.lang.String,java.lang.Object> inputOptions)Input options for the attributeTicketTypeAttribute.DescriptionStagename(java.lang.String name)The name of the ticket type attributeTicketTypeAttribute.RequiredToCreateStageorder(int order)The order of the attribute against other attributesTicketTypeAttribute._FinalStageputAllInputOptions(java.util.Map<java.lang.String,java.lang.Object> inputOptions)Input options for the attributeTicketTypeAttribute.RequiredToCreateForContactsStagerequiredToCreate(boolean requiredToCreate)Whether the attribute is required or not for teammates.TicketTypeAttribute.VisibleOnCreateStagerequiredToCreateForContacts(boolean requiredToCreateForContacts)Whether the attribute is required or not for contacts.TicketTypeAttribute.ArchivedStageticketTypeId(int ticketTypeId)The id of the ticket type that the attribute belongs to.TicketTypeAttribute._FinalStageupdatedAt(java.lang.Integer updatedAt)The date and time the ticket type attribute was last updated.TicketTypeAttribute._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The date and time the ticket type attribute was last updated.TicketTypeAttribute.VisibleToContactsStagevisibleOnCreate(boolean visibleOnCreate)Whether the attribute is visible or not to teammates.TicketTypeAttribute.DefaultStagevisibleToContacts(boolean visibleToContacts)Whether the attribute is visible or not to contacts.TicketTypeAttribute.NameStageworkspaceId(java.lang.String workspaceId)The id of the workspace that the ticket type attribute belongs to.
-
-
-
Method Detail
-
from
public TicketTypeAttribute.Builder from(TicketTypeAttribute other)
- Specified by:
fromin interfaceTicketTypeAttribute.IdStage
-
id
public TicketTypeAttribute.WorkspaceIdStage id(@NotNull java.lang.String id)
The id representing the ticket type attribute.The id representing the ticket type attribute.
- Specified by:
idin interfaceTicketTypeAttribute.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceId
public TicketTypeAttribute.NameStage workspaceId(@NotNull java.lang.String workspaceId)
The id of the workspace that the ticket type attribute belongs to.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
public TicketTypeAttribute.DescriptionStage name(@NotNull java.lang.String name)
The name of the ticket type attributeThe name of the ticket type attribute
- Specified by:
namein interfaceTicketTypeAttribute.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public TicketTypeAttribute.DataTypeStage description(@NotNull java.lang.String description)
The description of the ticket type attributeThe description of the ticket type attribute
- Specified by:
descriptionin interfaceTicketTypeAttribute.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
public TicketTypeAttribute.OrderStage dataType(@NotNull TicketTypeAttribute.DataType dataType)
The type of the data attribute (allowed values: "string list integer decimal boolean datetime files")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
public TicketTypeAttribute.RequiredToCreateStage order(int order)
The order of the attribute against other attributesThe 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.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.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
public TicketTypeAttribute.VisibleToContactsStage visibleOnCreate(boolean visibleOnCreate)
Whether the attribute is visible or not to teammates.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
public TicketTypeAttribute.DefaultStage visibleToContacts(boolean visibleToContacts)
Whether the attribute is visible or not to contacts.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_
public TicketTypeAttribute.TicketTypeIdStage default_(boolean default_)
Whether the attribute is built in or not.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
public TicketTypeAttribute.ArchivedStage ticketTypeId(int ticketTypeId)
The id of the ticket type that the attribute belongs to.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
public TicketTypeAttribute.CreatedAtStage archived(boolean archived)
Whether the ticket type attribute is archived or not.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
public TicketTypeAttribute._FinalStage createdAt(int createdAt)
The date and time the ticket type attribute was created.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
public TicketTypeAttribute._FinalStage updatedAt(java.lang.Integer 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
public TicketTypeAttribute._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The date and time the ticket type attribute was last updated.
- Specified by:
updatedAtin interfaceTicketTypeAttribute._FinalStage
-
inputOptions
public TicketTypeAttribute._FinalStage inputOptions(java.lang.String key, java.lang.Object value)
Input options for the attribute
- Specified by:
inputOptionsin interfaceTicketTypeAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
putAllInputOptions
public TicketTypeAttribute._FinalStage putAllInputOptions(java.util.Map<java.lang.String,java.lang.Object> inputOptions)
Input options for the attribute
- Specified by:
putAllInputOptionsin interfaceTicketTypeAttribute._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputOptions
public TicketTypeAttribute._FinalStage inputOptions(java.util.Map<java.lang.String,java.lang.Object> inputOptions)
Input options for the attribute
- Specified by:
inputOptionsin interfaceTicketTypeAttribute._FinalStage
-
build
public TicketTypeAttribute build()
- Specified by:
buildin interfaceTicketTypeAttribute._FinalStage
-
-