Class AsyncTicketing
- java.lang.Object
-
- com.stackone.stackone_client_java.AsyncTicketing
-
public class AsyncTicketing extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
sync
public Ticketing sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
listTickets
public TicketingListTicketsRequestBuilder listTickets()
List TicketsRetrieve a paginated list of tickets.
- Returns:
- The async call builder
-
listTickets
public java.util.concurrent.CompletableFuture<TicketingListTicketsResponse> listTickets(TicketingListTicketsRequest request)
List TicketsRetrieve a paginated list of tickets.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListTicketsResponse>- The async response
-
listTickets
public java.util.concurrent.CompletableFuture<TicketingListTicketsResponse> listTickets(TicketingListTicketsRequest request, java.util.Optional<Options> options)
List TicketsRetrieve a paginated list of tickets.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListTicketsResponse>- The async response
-
createTicket
public TicketingCreateTicketRequestBuilder createTicket()
Create TicketCreate a new ticket record.
- Returns:
- The async call builder
-
createTicket
public java.util.concurrent.CompletableFuture<TicketingCreateTicketResponse> createTicket(java.lang.String xAccountId, TicketingTicketCreateRequestDto ticketingTicketCreateRequestDto)
Create TicketCreate a new ticket record.
- Parameters:
xAccountId- The account identifierticketingTicketCreateRequestDto-- Returns:
CompletableFuture<TicketingCreateTicketResponse>- The async response
-
createTicket
public java.util.concurrent.CompletableFuture<TicketingCreateTicketResponse> createTicket(java.lang.String xAccountId, TicketingTicketCreateRequestDto ticketingTicketCreateRequestDto, java.util.Optional<Options> options)
Create TicketCreate a new ticket record.
- Parameters:
xAccountId- The account identifierticketingTicketCreateRequestDto-options- additional options- Returns:
CompletableFuture<TicketingCreateTicketResponse>- The async response
-
getTicket
public TicketingGetTicketRequestBuilder getTicket()
Get TicketRetrieve a single ticket by its identifier.
- Returns:
- The async call builder
-
getTicket
public java.util.concurrent.CompletableFuture<TicketingGetTicketResponse> getTicket(TicketingGetTicketRequest request)
Get TicketRetrieve a single ticket by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingGetTicketResponse>- The async response
-
getTicket
public java.util.concurrent.CompletableFuture<TicketingGetTicketResponse> getTicket(TicketingGetTicketRequest request, java.util.Optional<Options> options)
Get TicketRetrieve a single ticket by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingGetTicketResponse>- The async response
-
updateTicket
public TicketingUpdateTicketRequestBuilder updateTicket()
Update TicketUpdate an existing ticket record by its identifier.
- Returns:
- The async call builder
-
updateTicket
public java.util.concurrent.CompletableFuture<TicketingUpdateTicketResponse> updateTicket(java.lang.String xAccountId, java.lang.String id, TicketingTicketUpdateRequestDto ticketingTicketUpdateRequestDto)
Update TicketUpdate an existing ticket record by its identifier.
- Parameters:
xAccountId- The account identifierid-ticketingTicketUpdateRequestDto-- Returns:
CompletableFuture<TicketingUpdateTicketResponse>- The async response
-
updateTicket
public java.util.concurrent.CompletableFuture<TicketingUpdateTicketResponse> updateTicket(java.lang.String xAccountId, java.lang.String id, TicketingTicketUpdateRequestDto ticketingTicketUpdateRequestDto, java.util.Optional<Options> options)
Update TicketUpdate an existing ticket record by its identifier.
- Parameters:
xAccountId- The account identifierid-ticketingTicketUpdateRequestDto-options- additional options- Returns:
CompletableFuture<TicketingUpdateTicketResponse>- The async response
-
listUsers
public TicketingListUsersRequestBuilder listUsers()
List UsersRetrieve a paginated list of users.
- Returns:
- The async call builder
-
listUsers
public java.util.concurrent.CompletableFuture<TicketingListUsersResponse> listUsers(TicketingListUsersRequest request)
List UsersRetrieve a paginated list of users.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListUsersResponse>- The async response
-
listUsers
public java.util.concurrent.CompletableFuture<TicketingListUsersResponse> listUsers(TicketingListUsersRequest request, java.util.Optional<Options> options)
List UsersRetrieve a paginated list of users.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListUsersResponse>- The async response
-
getUser
public TicketingGetUserRequestBuilder getUser()
Get UserRetrieve a single user by their identifier.
- Returns:
- The async call builder
-
getUser
public java.util.concurrent.CompletableFuture<TicketingGetUserResponse> getUser(TicketingGetUserRequest request)
Get UserRetrieve a single user by their identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingGetUserResponse>- The async response
-
getUser
public java.util.concurrent.CompletableFuture<TicketingGetUserResponse> getUser(TicketingGetUserRequest request, java.util.Optional<Options> options)
Get UserRetrieve a single user by their identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingGetUserResponse>- The async response
-
listComments
public TicketingListCommentsRequestBuilder listComments()
List CommentsRetrieve a paginated list of comments for a ticket.
- Returns:
- The async call builder
-
listComments
public java.util.concurrent.CompletableFuture<TicketingListCommentsResponse> listComments(TicketingListCommentsRequest request)
List CommentsRetrieve a paginated list of comments for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListCommentsResponse>- The async response
-
listComments
public java.util.concurrent.CompletableFuture<TicketingListCommentsResponse> listComments(TicketingListCommentsRequest request, java.util.Optional<Options> options)
List CommentsRetrieve a paginated list of comments for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListCommentsResponse>- The async response
-
getComment
public TicketingGetCommentRequestBuilder getComment()
Get CommentRetrieve a single comment by its identifier for a ticket.
- Returns:
- The async call builder
-
getComment
public java.util.concurrent.CompletableFuture<TicketingGetCommentResponse> getComment(TicketingGetCommentRequest request)
Get CommentRetrieve a single comment by its identifier for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingGetCommentResponse>- The async response
-
getComment
public java.util.concurrent.CompletableFuture<TicketingGetCommentResponse> getComment(TicketingGetCommentRequest request, java.util.Optional<Options> options)
Get CommentRetrieve a single comment by its identifier for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingGetCommentResponse>- The async response
-
downloadTicketingAttachment
public TicketingDownloadTicketingAttachmentRequestBuilder downloadTicketingAttachment()
Download AttachmentDownload the attachment file from a ticket.
- Returns:
- The async call builder
-
downloadTicketingAttachment
public java.util.concurrent.CompletableFuture<TicketingDownloadTicketingAttachmentResponse> downloadTicketingAttachment(TicketingDownloadTicketingAttachmentRequest request)
Download AttachmentDownload the attachment file from a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingDownloadTicketingAttachmentResponse>- The async response
-
downloadTicketingAttachment
public java.util.concurrent.CompletableFuture<TicketingDownloadTicketingAttachmentResponse> downloadTicketingAttachment(TicketingDownloadTicketingAttachmentRequest request, java.util.Optional<Options> options)
Download AttachmentDownload the attachment file from a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingDownloadTicketingAttachmentResponse>- The async response
-
listAttachments
public TicketingListAttachmentsRequestBuilder listAttachments()
List AttachmentsRetrieve a paginated list of attachment details for a ticket.
- Returns:
- The async call builder
-
listAttachments
public java.util.concurrent.CompletableFuture<TicketingListAttachmentsResponse> listAttachments(TicketingListAttachmentsRequest request)
List AttachmentsRetrieve a paginated list of attachment details for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListAttachmentsResponse>- The async response
-
listAttachments
public java.util.concurrent.CompletableFuture<TicketingListAttachmentsResponse> listAttachments(TicketingListAttachmentsRequest request, java.util.Optional<Options> options)
List AttachmentsRetrieve a paginated list of attachment details for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListAttachmentsResponse>- The async response
-
getAttachment
public TicketingGetAttachmentRequestBuilder getAttachment()
Get AttachmentRetrieve the details of a single attachment for a ticket.
- Returns:
- The async call builder
-
getAttachment
public java.util.concurrent.CompletableFuture<TicketingGetAttachmentResponse> getAttachment(TicketingGetAttachmentRequest request)
Get AttachmentRetrieve the details of a single attachment for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingGetAttachmentResponse>- The async response
-
getAttachment
public java.util.concurrent.CompletableFuture<TicketingGetAttachmentResponse> getAttachment(TicketingGetAttachmentRequest request, java.util.Optional<Options> options)
Get AttachmentRetrieve the details of a single attachment for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingGetAttachmentResponse>- The async response
-
listTicketTypes
public TicketingListTicketTypesRequestBuilder listTicketTypes()
List Ticket TypesRetrieve a paginated list of all ticket types.
- Returns:
- The async call builder
-
listTicketTypes
public java.util.concurrent.CompletableFuture<TicketingListTicketTypesResponse> listTicketTypes(TicketingListTicketTypesRequest request)
List Ticket TypesRetrieve a paginated list of all ticket types.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListTicketTypesResponse>- The async response
-
listTicketTypes
public java.util.concurrent.CompletableFuture<TicketingListTicketTypesResponse> listTicketTypes(TicketingListTicketTypesRequest request, java.util.Optional<Options> options)
List Ticket TypesRetrieve a paginated list of all ticket types.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListTicketTypesResponse>- The async response
-
getTicketType
public TicketingGetTicketTypeRequestBuilder getTicketType()
Get Ticket TypeRetrieve a single ticket type by its identifier.
- Returns:
- The async call builder
-
getTicketType
public java.util.concurrent.CompletableFuture<TicketingGetTicketTypeResponse> getTicketType(TicketingGetTicketTypeRequest request)
Get Ticket TypeRetrieve a single ticket type by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingGetTicketTypeResponse>- The async response
-
getTicketType
public java.util.concurrent.CompletableFuture<TicketingGetTicketTypeResponse> getTicketType(TicketingGetTicketTypeRequest request, java.util.Optional<Options> options)
Get Ticket TypeRetrieve a single ticket type by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingGetTicketTypeResponse>- The async response
-
listProjects
public TicketingListProjectsRequestBuilder listProjects()
List ProjectsRetrieve a paginated list of projects.
- Returns:
- The async call builder
-
listProjects
public java.util.concurrent.CompletableFuture<TicketingListProjectsResponse> listProjects(TicketingListProjectsRequest request)
List ProjectsRetrieve a paginated list of projects.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListProjectsResponse>- The async response
-
listProjects
public java.util.concurrent.CompletableFuture<TicketingListProjectsResponse> listProjects(TicketingListProjectsRequest request, java.util.Optional<Options> options)
List ProjectsRetrieve a paginated list of projects.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListProjectsResponse>- The async response
-
getProject
public TicketingGetProjectRequestBuilder getProject()
Get ProjectRetrieve a single project by its identifier.
- Returns:
- The async call builder
-
getProject
public java.util.concurrent.CompletableFuture<TicketingGetProjectResponse> getProject(TicketingGetProjectRequest request)
Get ProjectRetrieve a single project by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingGetProjectResponse>- The async response
-
getProject
public java.util.concurrent.CompletableFuture<TicketingGetProjectResponse> getProject(TicketingGetProjectRequest request, java.util.Optional<Options> options)
Get ProjectRetrieve a single project by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingGetProjectResponse>- The async response
-
listProjectComponents
public TicketingListProjectComponentsRequestBuilder listProjectComponents()
List Project ComponentsRetrieve a paginated list of project components.
- Returns:
- The async call builder
-
listProjectComponents
public java.util.concurrent.CompletableFuture<TicketingListProjectComponentsResponse> listProjectComponents(TicketingListProjectComponentsRequest request)
List Project ComponentsRetrieve a paginated list of project components.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListProjectComponentsResponse>- The async response
-
listProjectComponents
public java.util.concurrent.CompletableFuture<TicketingListProjectComponentsResponse> listProjectComponents(TicketingListProjectComponentsRequest request, java.util.Optional<Options> options)
List Project ComponentsRetrieve a paginated list of project components.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListProjectComponentsResponse>- The async response
-
getProjectComponent
public TicketingGetProjectComponentRequestBuilder getProjectComponent()
Get Project ComponentRetrieve a single project component by its identifier.
- Returns:
- The async call builder
-
getProjectComponent
public java.util.concurrent.CompletableFuture<TicketingGetProjectComponentResponse> getProjectComponent(TicketingGetProjectComponentRequest request)
Get Project ComponentRetrieve a single project component by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingGetProjectComponentResponse>- The async response
-
getProjectComponent
public java.util.concurrent.CompletableFuture<TicketingGetProjectComponentResponse> getProjectComponent(TicketingGetProjectComponentRequest request, java.util.Optional<Options> options)
Get Project ComponentRetrieve a single project component by its identifier.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingGetProjectComponentResponse>- The async response
-
listProjectTicketTypes
public TicketingListProjectTicketTypesRequestBuilder listProjectTicketTypes()
List Project Ticket TypesRetrieve a paginated list of ticket types for a project.
- Returns:
- The async call builder
-
listProjectTicketTypes
public java.util.concurrent.CompletableFuture<TicketingListProjectTicketTypesResponse> listProjectTicketTypes(TicketingListProjectTicketTypesRequest request)
List Project Ticket TypesRetrieve a paginated list of ticket types for a project.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListProjectTicketTypesResponse>- The async response
-
listProjectTicketTypes
public java.util.concurrent.CompletableFuture<TicketingListProjectTicketTypesResponse> listProjectTicketTypes(TicketingListProjectTicketTypesRequest request, java.util.Optional<Options> options)
List Project Ticket TypesRetrieve a paginated list of ticket types for a project.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListProjectTicketTypesResponse>- The async response
-
listTicketStatuses
public TicketingListTicketStatusesRequestBuilder listTicketStatuses()
List Ticket StatusesRetrieve a paginated list of statuses for a ticket.
- Returns:
- The async call builder
-
listTicketStatuses
public java.util.concurrent.CompletableFuture<TicketingListTicketStatusesResponse> listTicketStatuses(TicketingListTicketStatusesRequest request)
List Ticket StatusesRetrieve a paginated list of statuses for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<TicketingListTicketStatusesResponse>- The async response
-
listTicketStatuses
public java.util.concurrent.CompletableFuture<TicketingListTicketStatusesResponse> listTicketStatuses(TicketingListTicketStatusesRequest request, java.util.Optional<Options> options)
List Ticket StatusesRetrieve a paginated list of statuses for a ticket.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<TicketingListTicketStatusesResponse>- The async response
-
-