Class CreateTicketTypeAttributeRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.tickettypeattributes.requests.CreateTicketTypeAttributeRequest.Builder
-
- All Implemented Interfaces:
CreateTicketTypeAttributeRequest._FinalStage,CreateTicketTypeAttributeRequest.DataTypeStage,CreateTicketTypeAttributeRequest.DescriptionStage,CreateTicketTypeAttributeRequest.NameStage,CreateTicketTypeAttributeRequest.TicketTypeIdStage
- Enclosing class:
- CreateTicketTypeAttributeRequest
public static final class CreateTicketTypeAttributeRequest.Builder extends java.lang.Object implements CreateTicketTypeAttributeRequest.TicketTypeIdStage, CreateTicketTypeAttributeRequest.NameStage, CreateTicketTypeAttributeRequest.DescriptionStage, CreateTicketTypeAttributeRequest.DataTypeStage, CreateTicketTypeAttributeRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTicketTypeAttributeRequest._FinalStageallowMultipleValues(java.lang.Boolean allowMultipleValues)Whether the attribute allows multiple files to be attached to it (only applicable to file attributes)CreateTicketTypeAttributeRequest._FinalStageallowMultipleValues(java.util.Optional<java.lang.Boolean> allowMultipleValues)Whether the attribute allows multiple files to be attached to it (only applicable to file attributes)CreateTicketTypeAttributeRequestbuild()CreateTicketTypeAttributeRequest._FinalStagedataType(CreateTicketTypeAttributeRequest.DataType dataType)The data type of the attributeCreateTicketTypeAttributeRequest.DataTypeStagedescription(java.lang.String description)The description of the attribute presented to the teammate or contactCreateTicketTypeAttributeRequest.Builderfrom(CreateTicketTypeAttributeRequest other)CreateTicketTypeAttributeRequest._FinalStagelistItems(java.lang.String listItems)A comma delimited list of items for the attribute value (only applicable to list attributes)CreateTicketTypeAttributeRequest._FinalStagelistItems(java.util.Optional<java.lang.String> listItems)A comma delimited list of items for the attribute value (only applicable to list attributes)CreateTicketTypeAttributeRequest._FinalStagemultiline(java.lang.Boolean multiline)Whether the attribute allows multiple lines of text (only applicable to string attributes)CreateTicketTypeAttributeRequest._FinalStagemultiline(java.util.Optional<java.lang.Boolean> multiline)Whether the attribute allows multiple lines of text (only applicable to string attributes)CreateTicketTypeAttributeRequest.DescriptionStagename(java.lang.String name)The name of the ticket type attributeCreateTicketTypeAttributeRequest._FinalStagerequiredToCreate(java.lang.Boolean requiredToCreate)Whether the attribute is required to be filled in when teammates are creating the ticket in Inbox.CreateTicketTypeAttributeRequest._FinalStagerequiredToCreate(java.util.Optional<java.lang.Boolean> requiredToCreate)Whether the attribute is required to be filled in when teammates are creating the ticket in Inbox.CreateTicketTypeAttributeRequest._FinalStagerequiredToCreateForContacts(java.lang.Boolean requiredToCreateForContacts)Whether the attribute is required to be filled in when contacts are creating the ticket in Messenger.CreateTicketTypeAttributeRequest._FinalStagerequiredToCreateForContacts(java.util.Optional<java.lang.Boolean> requiredToCreateForContacts)Whether the attribute is required to be filled in when contacts are creating the ticket in Messenger.CreateTicketTypeAttributeRequest.NameStageticketTypeId(java.lang.String ticketTypeId)The unique identifier for the ticket type which is given by Intercom.CreateTicketTypeAttributeRequest._FinalStagevisibleOnCreate(java.lang.Boolean visibleOnCreate)Whether the attribute is visible to teammates when creating a ticket in Inbox.CreateTicketTypeAttributeRequest._FinalStagevisibleOnCreate(java.util.Optional<java.lang.Boolean> visibleOnCreate)Whether the attribute is visible to teammates when creating a ticket in Inbox.CreateTicketTypeAttributeRequest._FinalStagevisibleToContacts(java.lang.Boolean visibleToContacts)Whether the attribute is visible to contacts when creating a ticket in Messenger.CreateTicketTypeAttributeRequest._FinalStagevisibleToContacts(java.util.Optional<java.lang.Boolean> visibleToContacts)Whether the attribute is visible to contacts when creating a ticket in Messenger.
-
-
-
Method Detail
-
from
public CreateTicketTypeAttributeRequest.Builder from(CreateTicketTypeAttributeRequest other)
- Specified by:
fromin interfaceCreateTicketTypeAttributeRequest.TicketTypeIdStage
-
ticketTypeId
public CreateTicketTypeAttributeRequest.NameStage ticketTypeId(@NotNull java.lang.String ticketTypeId)
The unique identifier for the ticket type which is given by Intercom.
The unique identifier for the ticket type which is given by Intercom.
- Specified by:
ticketTypeIdin interfaceCreateTicketTypeAttributeRequest.TicketTypeIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public CreateTicketTypeAttributeRequest.DescriptionStage name(@NotNull java.lang.String name)
The name of the ticket type attribute
The name of the ticket type attribute
- Specified by:
namein interfaceCreateTicketTypeAttributeRequest.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public CreateTicketTypeAttributeRequest.DataTypeStage description(@NotNull java.lang.String description)
The description of the attribute presented to the teammate or contact
The description of the attribute presented to the teammate or contact
- Specified by:
descriptionin interfaceCreateTicketTypeAttributeRequest.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
public CreateTicketTypeAttributeRequest._FinalStage dataType(@NotNull CreateTicketTypeAttributeRequest.DataType dataType)
The data type of the attribute
The data type of the attribute
- Specified by:
dataTypein interfaceCreateTicketTypeAttributeRequest.DataTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowMultipleValues
public CreateTicketTypeAttributeRequest._FinalStage allowMultipleValues(java.lang.Boolean allowMultipleValues)
Whether the attribute allows multiple files to be attached to it (only applicable to file attributes)
- Specified by:
allowMultipleValuesin interfaceCreateTicketTypeAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowMultipleValues
public CreateTicketTypeAttributeRequest._FinalStage allowMultipleValues(java.util.Optional<java.lang.Boolean> allowMultipleValues)
Whether the attribute allows multiple files to be attached to it (only applicable to file attributes)
- Specified by:
allowMultipleValuesin interfaceCreateTicketTypeAttributeRequest._FinalStage
-
listItems
public CreateTicketTypeAttributeRequest._FinalStage listItems(java.lang.String listItems)
A comma delimited list of items for the attribute value (only applicable to list attributes)
- Specified by:
listItemsin interfaceCreateTicketTypeAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
listItems
public CreateTicketTypeAttributeRequest._FinalStage listItems(java.util.Optional<java.lang.String> listItems)
A comma delimited list of items for the attribute value (only applicable to list attributes)
- Specified by:
listItemsin interfaceCreateTicketTypeAttributeRequest._FinalStage
-
multiline
public CreateTicketTypeAttributeRequest._FinalStage multiline(java.lang.Boolean multiline)
Whether the attribute allows multiple lines of text (only applicable to string attributes)
- Specified by:
multilinein interfaceCreateTicketTypeAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
multiline
public CreateTicketTypeAttributeRequest._FinalStage multiline(java.util.Optional<java.lang.Boolean> multiline)
Whether the attribute allows multiple lines of text (only applicable to string attributes)
- Specified by:
multilinein interfaceCreateTicketTypeAttributeRequest._FinalStage
-
visibleToContacts
public CreateTicketTypeAttributeRequest._FinalStage visibleToContacts(java.lang.Boolean visibleToContacts)
Whether the attribute is visible to contacts when creating a ticket in Messenger.
- Specified by:
visibleToContactsin interfaceCreateTicketTypeAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
visibleToContacts
public CreateTicketTypeAttributeRequest._FinalStage visibleToContacts(java.util.Optional<java.lang.Boolean> visibleToContacts)
Whether the attribute is visible to contacts when creating a ticket in Messenger.
- Specified by:
visibleToContactsin interfaceCreateTicketTypeAttributeRequest._FinalStage
-
visibleOnCreate
public CreateTicketTypeAttributeRequest._FinalStage visibleOnCreate(java.lang.Boolean visibleOnCreate)
Whether the attribute is visible to teammates when creating a ticket in Inbox.
- Specified by:
visibleOnCreatein interfaceCreateTicketTypeAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
visibleOnCreate
public CreateTicketTypeAttributeRequest._FinalStage visibleOnCreate(java.util.Optional<java.lang.Boolean> visibleOnCreate)
Whether the attribute is visible to teammates when creating a ticket in Inbox.
- Specified by:
visibleOnCreatein interfaceCreateTicketTypeAttributeRequest._FinalStage
-
requiredToCreateForContacts
public CreateTicketTypeAttributeRequest._FinalStage requiredToCreateForContacts(java.lang.Boolean requiredToCreateForContacts)
Whether the attribute is required to be filled in when contacts are creating the ticket in Messenger.
- Specified by:
requiredToCreateForContactsin interfaceCreateTicketTypeAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
requiredToCreateForContacts
public CreateTicketTypeAttributeRequest._FinalStage requiredToCreateForContacts(java.util.Optional<java.lang.Boolean> requiredToCreateForContacts)
Whether the attribute is required to be filled in when contacts are creating the ticket in Messenger.
- Specified by:
requiredToCreateForContactsin interfaceCreateTicketTypeAttributeRequest._FinalStage
-
requiredToCreate
public CreateTicketTypeAttributeRequest._FinalStage requiredToCreate(java.lang.Boolean requiredToCreate)
Whether the attribute is required to be filled in when teammates are creating the ticket in Inbox.
- Specified by:
requiredToCreatein interfaceCreateTicketTypeAttributeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
requiredToCreate
public CreateTicketTypeAttributeRequest._FinalStage requiredToCreate(java.util.Optional<java.lang.Boolean> requiredToCreate)
Whether the attribute is required to be filled in when teammates are creating the ticket in Inbox.
- Specified by:
requiredToCreatein interfaceCreateTicketTypeAttributeRequest._FinalStage
-
build
public CreateTicketTypeAttributeRequest build()
- Specified by:
buildin interfaceCreateTicketTypeAttributeRequest._FinalStage
-
-