@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SlackIntegrationApi extends Object
| Constructor and Description |
|---|
SlackIntegrationApi() |
SlackIntegrationApi(ApiClient apiClient) |
public SlackIntegrationApi()
public SlackIntegrationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic SlackIntegrationChannel createSlackIntegrationChannel(String accountName, SlackIntegrationChannel body) throws ApiException
accountName - Your Slack account name. (required)body - Payload describing Slack channel to be created (required)ApiException - if fails to make API callpublic CompletableFuture<SlackIntegrationChannel> createSlackIntegrationChannelAsync(String accountName, SlackIntegrationChannel body)
accountName - Your Slack account name. (required)body - Payload describing Slack channel to be created (required)public ApiResponse<SlackIntegrationChannel> createSlackIntegrationChannelWithHttpInfo(String accountName, SlackIntegrationChannel body) throws ApiException
accountName - Your Slack account name. (required)body - Payload describing Slack channel to be created (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SlackIntegrationChannel>> createSlackIntegrationChannelWithHttpInfoAsync(String accountName, SlackIntegrationChannel body)
accountName - Your Slack account name. (required)body - Payload describing Slack channel to be created (required)public SlackIntegrationChannel getSlackIntegrationChannel(String accountName, String channelName) throws ApiException
See getSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)ApiException - if fails to make API callpublic CompletableFuture<SlackIntegrationChannel> getSlackIntegrationChannelAsync(String accountName, String channelName)
See getSlackIntegrationChannelWithHttpInfoAsync(java.lang.String, java.lang.String).
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)public ApiResponse<SlackIntegrationChannel> getSlackIntegrationChannelWithHttpInfo(String accountName, String channelName) throws ApiException
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SlackIntegrationChannel>> getSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName)
See getSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)public List<SlackIntegrationChannel> getSlackIntegrationChannels(String accountName) throws ApiException
See getSlackIntegrationChannelsWithHttpInfo(java.lang.String).
accountName - Your Slack account name. (required)ApiException - if fails to make API callpublic CompletableFuture<List<SlackIntegrationChannel>> getSlackIntegrationChannelsAsync(String accountName)
See getSlackIntegrationChannelsWithHttpInfoAsync(java.lang.String).
accountName - Your Slack account name. (required)public ApiResponse<List<SlackIntegrationChannel>> getSlackIntegrationChannelsWithHttpInfo(String accountName) throws ApiException
accountName - Your Slack account name. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<List<SlackIntegrationChannel>>> getSlackIntegrationChannelsWithHttpInfoAsync(String accountName)
See getSlackIntegrationChannelsWithHttpInfo(java.lang.String).
accountName - Your Slack account name. (required)public void removeSlackIntegrationChannel(String accountName, String channelName) throws ApiException
See removeSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> removeSlackIntegrationChannelAsync(String accountName, String channelName)
See removeSlackIntegrationChannelWithHttpInfoAsync(java.lang.String, java.lang.String).
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)public ApiResponse<Void> removeSlackIntegrationChannelWithHttpInfo(String accountName, String channelName) throws ApiException
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | The channel was removed successfully. | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> removeSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName)
See removeSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)public SlackIntegrationChannel updateSlackIntegrationChannel(String accountName, String channelName, SlackIntegrationChannel body) throws ApiException
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)body - Payload describing fields and values to be updated. (required)ApiException - if fails to make API callpublic CompletableFuture<SlackIntegrationChannel> updateSlackIntegrationChannelAsync(String accountName, String channelName, SlackIntegrationChannel body)
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)body - Payload describing fields and values to be updated. (required)public ApiResponse<SlackIntegrationChannel> updateSlackIntegrationChannelWithHttpInfo(String accountName, String channelName, SlackIntegrationChannel body) throws ApiException
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)body - Payload describing fields and values to be updated. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SlackIntegrationChannel>> updateSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName, SlackIntegrationChannel body)
accountName - Your Slack account name. (required)channelName - The name of the Slack channel being operated on. (required)body - Payload describing fields and values to be updated. (required)Copyright © 2024. All rights reserved.