@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class PowerpackApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PowerpackApi.ListPowerpacksOptionalParameters
Manage optional parameters to listPowerpacks.
|
| Constructor and Description |
|---|
PowerpackApi() |
PowerpackApi(ApiClient apiClient) |
public PowerpackApi()
public PowerpackApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic PowerpackResponse createPowerpack(Powerpack body) throws ApiException
See createPowerpackWithHttpInfo(com.datadog.api.client.v2.model.Powerpack).
body - Create a powerpack request body. (required)ApiException - if fails to make API callpublic CompletableFuture<PowerpackResponse> createPowerpackAsync(Powerpack body)
See createPowerpackWithHttpInfoAsync(com.datadog.api.client.v2.model.Powerpack).
body - Create a powerpack request body. (required)public ApiResponse<PowerpackResponse> createPowerpackWithHttpInfo(Powerpack body) throws ApiException
body - Create a powerpack request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<PowerpackResponse>> createPowerpackWithHttpInfoAsync(Powerpack body)
See createPowerpackWithHttpInfo(com.datadog.api.client.v2.model.Powerpack).
body - Create a powerpack request body. (required)public void deletePowerpack(String powerpackId) throws ApiException
powerpackId - Powerpack id (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deletePowerpackAsync(String powerpackId)
powerpackId - Powerpack id (required)public ApiResponse<Void> deletePowerpackWithHttpInfo(String powerpackId) throws ApiException
powerpackId - Powerpack id (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 404 | Powerpack Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deletePowerpackWithHttpInfoAsync(String powerpackId)
powerpackId - Powerpack id (required)public PowerpackResponse getPowerpack(String powerpackId) throws ApiException
powerpackId - ID of the powerpack. (required)ApiException - if fails to make API callpublic CompletableFuture<PowerpackResponse> getPowerpackAsync(String powerpackId)
powerpackId - ID of the powerpack. (required)public ApiResponse<PowerpackResponse> getPowerpackWithHttpInfo(String powerpackId) throws ApiException
powerpackId - ID of the powerpack. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 404 | Powerpack Not Found. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<PowerpackResponse>> getPowerpackWithHttpInfoAsync(String powerpackId)
powerpackId - ID of the powerpack. (required)public ListPowerpacksResponse listPowerpacks() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ListPowerpacksResponse> listPowerpacksAsync()
public ListPowerpacksResponse listPowerpacks(PowerpackApi.ListPowerpacksOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListPowerpacksResponse> listPowerpacksAsync(PowerpackApi.ListPowerpacksOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<PowerpackData> listPowerpacksWithPagination()
public PaginationIterable<PowerpackData> listPowerpacksWithPagination(PowerpackApi.ListPowerpacksOptionalParameters parameters)
public ApiResponse<ListPowerpacksResponse> listPowerpacksWithHttpInfo(PowerpackApi.ListPowerpacksOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ListPowerpacksResponse>> listPowerpacksWithHttpInfoAsync(PowerpackApi.ListPowerpacksOptionalParameters parameters)
parameters - Optional parameters for the request.public PowerpackResponse updatePowerpack(String powerpackId, Powerpack body) throws ApiException
See updatePowerpackWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.Powerpack).
powerpackId - ID of the powerpack. (required)body - Update a powerpack request body. (required)ApiException - if fails to make API callpublic CompletableFuture<PowerpackResponse> updatePowerpackAsync(String powerpackId, Powerpack body)
See updatePowerpackWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.Powerpack).
powerpackId - ID of the powerpack. (required)body - Update a powerpack request body. (required)public ApiResponse<PowerpackResponse> updatePowerpackWithHttpInfo(String powerpackId, Powerpack body) throws ApiException
powerpackId - ID of the powerpack. (required)body - Update a powerpack request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 404 | Powerpack Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<PowerpackResponse>> updatePowerpackWithHttpInfoAsync(String powerpackId, Powerpack body)
See updatePowerpackWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.Powerpack).
powerpackId - ID of the powerpack. (required)body - Update a powerpack request body. (required)Copyright © 2024. All rights reserved.