public final class ChatImpl
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CreateChatThreadResult |
createChatThread(CreateChatThreadOptions createChatThreadRequest)
Creates a chat thread.
|
CreateChatThreadResult |
createChatThread(CreateChatThreadOptions createChatThreadRequest,
java.lang.String repeatabilityRequestId)
Creates a chat thread.
|
java9.util.concurrent.CompletableFuture<CreateChatThreadResult> |
createChatThreadAsync(CreateChatThreadOptions createChatThreadRequest)
Creates a chat thread.
|
java9.util.concurrent.CompletableFuture<CreateChatThreadResult> |
createChatThreadAsync(CreateChatThreadOptions createChatThreadRequest,
java.lang.String repeatabilityRequestId)
Creates a chat thread.
|
java9.util.concurrent.CompletableFuture<CreateChatThreadResult> |
createChatThreadAsync(CreateChatThreadOptions createChatThreadRequest,
java.lang.String repeatabilityRequestId,
com.azure.android.core.util.RequestContext requestContext)
Creates a chat thread.
|
com.azure.android.core.rest.Response<CreateChatThreadResult> |
createChatThreadWithResponse(CreateChatThreadOptions createChatThreadRequest,
java.lang.String repeatabilityRequestId,
com.azure.android.core.util.RequestContext requestContext)
Creates a chat thread.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<CreateChatThreadResult>> |
createChatThreadWithResponseAsync(CreateChatThreadOptions createChatThreadRequest,
java.lang.String repeatabilityRequestId)
Creates a chat thread.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<CreateChatThreadResult>> |
createChatThreadWithResponseAsync(CreateChatThreadOptions createChatThreadRequest,
java.lang.String repeatabilityRequestId,
com.azure.android.core.util.RequestContext requestContext)
Creates a chat thread.
|
void |
deleteChatThread(java.lang.String chatThreadId)
Deletes a thread.
|
java9.util.concurrent.CompletableFuture<java.lang.Void> |
deleteChatThreadAsync(java.lang.String chatThreadId)
Deletes a thread.
|
java9.util.concurrent.CompletableFuture<java.lang.Void> |
deleteChatThreadAsync(java.lang.String chatThreadId,
com.azure.android.core.util.RequestContext requestContext)
Deletes a thread.
|
com.azure.android.core.rest.Response<java.lang.Void> |
deleteChatThreadWithResponse(java.lang.String chatThreadId,
com.azure.android.core.util.RequestContext requestContext)
Deletes a thread.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<java.lang.Void>> |
deleteChatThreadWithResponseAsync(java.lang.String chatThreadId)
Deletes a thread.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<java.lang.Void>> |
deleteChatThreadWithResponseAsync(java.lang.String chatThreadId,
com.azure.android.core.util.RequestContext requestContext)
Deletes a thread.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> |
listChatThreadsNextSinglePageAsync(java.lang.String nextLink)
Get the next page of items.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> |
listChatThreadsNextSinglePageAsync(java.lang.String nextLink,
com.azure.android.core.util.RequestContext requestContext)
Get the next page of items.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> |
listChatThreadsSinglePageAsync(java.lang.Integer maxPageSize,
org.threeten.bp.OffsetDateTime startTime)
Gets the list of chat threads of a user.
|
java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> |
listChatThreadsSinglePageAsync(java.lang.Integer maxPageSize,
org.threeten.bp.OffsetDateTime startTime,
com.azure.android.core.util.RequestContext requestContext)
Gets the list of chat threads of a user.
|
public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<CreateChatThreadResult>> createChatThreadWithResponseAsync(CreateChatThreadOptions createChatThreadRequest, java.lang.String repeatabilityRequestId)
createChatThreadRequest
- Request payload for creating a chat thread.repeatabilityRequestId
- If specified, the client directs that the request is repeatable; that is, that the
client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate
response without the server executing the request multiple times. The value of the Repeatability-Request-Id
is an opaque string representing a client-generated, globally unique for all time, identifier for the
request. It is recommended to use version 4 (random) UUIDs.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<CreateChatThreadResult>> createChatThreadWithResponseAsync(CreateChatThreadOptions createChatThreadRequest, java.lang.String repeatabilityRequestId, com.azure.android.core.util.RequestContext requestContext)
createChatThreadRequest
- Request payload for creating a chat thread.repeatabilityRequestId
- If specified, the client directs that the request is repeatable; that is, that the
client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate
response without the server executing the request multiple times. The value of the Repeatability-Request-Id
is an opaque string representing a client-generated, globally unique for all time, identifier for the
request. It is recommended to use version 4 (random) UUIDs.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<CreateChatThreadResult> createChatThreadAsync(CreateChatThreadOptions createChatThreadRequest, java.lang.String repeatabilityRequestId)
createChatThreadRequest
- Request payload for creating a chat thread.repeatabilityRequestId
- If specified, the client directs that the request is repeatable; that is, that the
client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate
response without the server executing the request multiple times. The value of the Repeatability-Request-Id
is an opaque string representing a client-generated, globally unique for all time, identifier for the
request. It is recommended to use version 4 (random) UUIDs.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<CreateChatThreadResult> createChatThreadAsync(CreateChatThreadOptions createChatThreadRequest)
createChatThreadRequest
- Request payload for creating a chat thread.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<CreateChatThreadResult> createChatThreadAsync(CreateChatThreadOptions createChatThreadRequest, java.lang.String repeatabilityRequestId, com.azure.android.core.util.RequestContext requestContext)
createChatThreadRequest
- Request payload for creating a chat thread.repeatabilityRequestId
- If specified, the client directs that the request is repeatable; that is, that the
client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate
response without the server executing the request multiple times. The value of the Repeatability-Request-Id
is an opaque string representing a client-generated, globally unique for all time, identifier for the
request. It is recommended to use version 4 (random) UUIDs.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public CreateChatThreadResult createChatThread(CreateChatThreadOptions createChatThreadRequest, java.lang.String repeatabilityRequestId)
createChatThreadRequest
- Request payload for creating a chat thread.repeatabilityRequestId
- If specified, the client directs that the request is repeatable; that is, that the
client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate
response without the server executing the request multiple times. The value of the Repeatability-Request-Id
is an opaque string representing a client-generated, globally unique for all time, identifier for the
request. It is recommended to use version 4 (random) UUIDs.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public CreateChatThreadResult createChatThread(CreateChatThreadOptions createChatThreadRequest)
createChatThreadRequest
- Request payload for creating a chat thread.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.android.core.rest.Response<CreateChatThreadResult> createChatThreadWithResponse(CreateChatThreadOptions createChatThreadRequest, java.lang.String repeatabilityRequestId, com.azure.android.core.util.RequestContext requestContext)
createChatThreadRequest
- Request payload for creating a chat thread.repeatabilityRequestId
- If specified, the client directs that the request is repeatable; that is, that the
client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate
response without the server executing the request multiple times. The value of the Repeatability-Request-Id
is an opaque string representing a client-generated, globally unique for all time, identifier for the
request. It is recommended to use version 4 (random) UUIDs.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> listChatThreadsSinglePageAsync(java.lang.Integer maxPageSize, org.threeten.bp.OffsetDateTime startTime)
maxPageSize
- The maximum number of chat threads returned per page.startTime
- The earliest point in time to get chat threads up to. The timestamp should be in RFC3339 format:
`yyyy-MM-ddTHH:mm:ssZ`.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> listChatThreadsSinglePageAsync(java.lang.Integer maxPageSize, org.threeten.bp.OffsetDateTime startTime, com.azure.android.core.util.RequestContext requestContext)
maxPageSize
- The maximum number of chat threads returned per page.startTime
- The earliest point in time to get chat threads up to. The timestamp should be in RFC3339 format:
`yyyy-MM-ddTHH:mm:ssZ`.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<java.lang.Void>> deleteChatThreadWithResponseAsync(java.lang.String chatThreadId)
chatThreadId
- Id of the thread to be deleted.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.Response<java.lang.Void>> deleteChatThreadWithResponseAsync(java.lang.String chatThreadId, com.azure.android.core.util.RequestContext requestContext)
chatThreadId
- Id of the thread to be deleted.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<java.lang.Void> deleteChatThreadAsync(java.lang.String chatThreadId)
chatThreadId
- Id of the thread to be deleted.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<java.lang.Void> deleteChatThreadAsync(java.lang.String chatThreadId, com.azure.android.core.util.RequestContext requestContext)
chatThreadId
- Id of the thread to be deleted.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public void deleteChatThread(java.lang.String chatThreadId)
chatThreadId
- Id of the thread to be deleted.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.android.core.rest.Response<java.lang.Void> deleteChatThreadWithResponse(java.lang.String chatThreadId, com.azure.android.core.util.RequestContext requestContext)
chatThreadId
- Id of the thread to be deleted.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> listChatThreadsNextSinglePageAsync(java.lang.String nextLink)
nextLink
- The nextLink parameter.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public java9.util.concurrent.CompletableFuture<com.azure.android.core.rest.util.paging.PagedResponse<ChatThreadItem>> listChatThreadsNextSinglePageAsync(java.lang.String nextLink, com.azure.android.core.util.RequestContext requestContext)
nextLink
- The nextLink parameter.requestContext
- The context to associate with this operation.java.lang.IllegalArgumentException
- thrown if parameters fail the validation.CommunicationErrorResponseException
- thrown if the request is rejected by server.java.lang.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.