@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsCustomDestinationsApi extends Object
| Constructor and Description |
|---|
LogsCustomDestinationsApi() |
LogsCustomDestinationsApi(ApiClient apiClient) |
public LogsCustomDestinationsApi()
public LogsCustomDestinationsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic CustomDestinationResponse createLogsCustomDestination(CustomDestinationCreateRequest body) throws ApiException
body - The definition of the new custom destination. (required)ApiException - if fails to make API callpublic CompletableFuture<CustomDestinationResponse> createLogsCustomDestinationAsync(CustomDestinationCreateRequest body)
body - The definition of the new custom destination. (required)public ApiResponse<CustomDestinationResponse> createLogsCustomDestinationWithHttpInfo(CustomDestinationCreateRequest body) throws ApiException
body - The definition of the new custom destination. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomDestinationResponse>> createLogsCustomDestinationWithHttpInfoAsync(CustomDestinationCreateRequest body)
body - The definition of the new custom destination. (required)public void deleteLogsCustomDestination(String customDestinationId) throws ApiException
See deleteLogsCustomDestinationWithHttpInfo(java.lang.String).
customDestinationId - The ID of the custom destination. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteLogsCustomDestinationAsync(String customDestinationId)
See deleteLogsCustomDestinationWithHttpInfoAsync(java.lang.String).
customDestinationId - The ID of the custom destination. (required)public ApiResponse<Void> deleteLogsCustomDestinationWithHttpInfo(String customDestinationId) throws ApiException
customDestinationId - The ID of the custom destination. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteLogsCustomDestinationWithHttpInfoAsync(String customDestinationId)
See deleteLogsCustomDestinationWithHttpInfo(java.lang.String).
customDestinationId - The ID of the custom destination. (required)public CustomDestinationResponse getLogsCustomDestination(String customDestinationId) throws ApiException
customDestinationId - The ID of the custom destination. (required)ApiException - if fails to make API callpublic CompletableFuture<CustomDestinationResponse> getLogsCustomDestinationAsync(String customDestinationId)
See getLogsCustomDestinationWithHttpInfoAsync(java.lang.String).
customDestinationId - The ID of the custom destination. (required)public ApiResponse<CustomDestinationResponse> getLogsCustomDestinationWithHttpInfo(String customDestinationId) throws ApiException
customDestinationId - The ID of the custom destination. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomDestinationResponse>> getLogsCustomDestinationWithHttpInfoAsync(String customDestinationId)
customDestinationId - The ID of the custom destination. (required)public CustomDestinationsResponse listLogsCustomDestinations() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CustomDestinationsResponse> listLogsCustomDestinationsAsync()
public ApiResponse<CustomDestinationsResponse> listLogsCustomDestinationsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomDestinationsResponse>> listLogsCustomDestinationsWithHttpInfoAsync()
public CustomDestinationResponse updateLogsCustomDestination(String customDestinationId, CustomDestinationUpdateRequest body) throws ApiException
customDestinationId - The ID of the custom destination. (required)body - New definition of the custom destination's fields. (required)ApiException - if fails to make API callpublic CompletableFuture<CustomDestinationResponse> updateLogsCustomDestinationAsync(String customDestinationId, CustomDestinationUpdateRequest body)
customDestinationId - The ID of the custom destination. (required)body - New definition of the custom destination's fields. (required)public ApiResponse<CustomDestinationResponse> updateLogsCustomDestinationWithHttpInfo(String customDestinationId, CustomDestinationUpdateRequest body) throws ApiException
customDestinationId - The ID of the custom destination. (required)body - New definition of the custom destination's fields. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomDestinationResponse>> updateLogsCustomDestinationWithHttpInfoAsync(String customDestinationId, CustomDestinationUpdateRequest body)
customDestinationId - The ID of the custom destination. (required)body - New definition of the custom destination's fields. (required)Copyright © 2024. All rights reserved.