@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CloudCostManagementApi extends Object
| Constructor and Description |
|---|
CloudCostManagementApi() |
CloudCostManagementApi(ApiClient apiClient) |
public CloudCostManagementApi()
public CloudCostManagementApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic AwsCURConfigResponse createCostAWSCURConfig(AwsCURConfigPostRequest body) throws ApiException
See createCostAWSCURConfigWithHttpInfo(com.datadog.api.client.v2.model.AwsCURConfigPostRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<AwsCURConfigResponse> createCostAWSCURConfigAsync(AwsCURConfigPostRequest body)
See createCostAWSCURConfigWithHttpInfoAsync(com.datadog.api.client.v2.model.AwsCURConfigPostRequest).
body - (required)public ApiResponse<AwsCURConfigResponse> createCostAWSCURConfigWithHttpInfo(AwsCURConfigPostRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsCURConfigResponse>> createCostAWSCURConfigWithHttpInfoAsync(AwsCURConfigPostRequest body)
See createCostAWSCURConfigWithHttpInfo(com.datadog.api.client.v2.model.AwsCURConfigPostRequest).
body - (required)public AzureUCConfigPairsResponse createCostAzureUCConfigs(AzureUCConfigPostRequest body) throws ApiException
See createCostAzureUCConfigsWithHttpInfo(com.datadog.api.client.v2.model.AzureUCConfigPostRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<AzureUCConfigPairsResponse> createCostAzureUCConfigsAsync(AzureUCConfigPostRequest body)
See createCostAzureUCConfigsWithHttpInfoAsync(com.datadog.api.client.v2.model.AzureUCConfigPostRequest).
body - (required)public ApiResponse<AzureUCConfigPairsResponse> createCostAzureUCConfigsWithHttpInfo(AzureUCConfigPostRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AzureUCConfigPairsResponse>> createCostAzureUCConfigsWithHttpInfoAsync(AzureUCConfigPostRequest body)
See createCostAzureUCConfigsWithHttpInfo(com.datadog.api.client.v2.model.AzureUCConfigPostRequest).
body - (required)public void deleteCostAWSCURConfig(String cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCostAWSCURConfigAsync(String cloudAccountId)
See deleteCostAWSCURConfigWithHttpInfoAsync(java.lang.String).
cloudAccountId - Cloud Account id. (required)public ApiResponse<Void> deleteCostAWSCURConfigWithHttpInfo(String cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCostAWSCURConfigWithHttpInfoAsync(String cloudAccountId)
cloudAccountId - Cloud Account id. (required)public void deleteCostAzureUCConfig(String cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCostAzureUCConfigAsync(String cloudAccountId)
See deleteCostAzureUCConfigWithHttpInfoAsync(java.lang.String).
cloudAccountId - Cloud Account id. (required)public ApiResponse<Void> deleteCostAzureUCConfigWithHttpInfo(String cloudAccountId) throws ApiException
cloudAccountId - Cloud Account id. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCostAzureUCConfigWithHttpInfoAsync(String cloudAccountId)
cloudAccountId - Cloud Account id. (required)public void deleteCustomCostsFile(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteCustomCostsFileAsync(String fileId)
See deleteCustomCostsFileWithHttpInfoAsync(java.lang.String).
fileId - File ID. (required)public ApiResponse<Void> deleteCustomCostsFileWithHttpInfo(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteCustomCostsFileWithHttpInfoAsync(String fileId)
fileId - File ID. (required)public CloudCostActivityResponse getCloudCostActivity() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CloudCostActivityResponse> getCloudCostActivityAsync()
public ApiResponse<CloudCostActivityResponse> getCloudCostActivityWithHttpInfo() 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<CloudCostActivityResponse>> getCloudCostActivityWithHttpInfoAsync()
public CustomCostsFileGetResponse getCustomCostsFile(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API callpublic CompletableFuture<CustomCostsFileGetResponse> getCustomCostsFileAsync(String fileId)
fileId - File ID. (required)public ApiResponse<CustomCostsFileGetResponse> getCustomCostsFileWithHttpInfo(String fileId) throws ApiException
fileId - File ID. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomCostsFileGetResponse>> getCustomCostsFileWithHttpInfoAsync(String fileId)
fileId - File ID. (required)@Deprecated public AWSRelatedAccountsResponse listAWSRelatedAccounts(String filterManagementAccountId) throws ApiException
filterManagementAccountId - The ID of the management account to filter by. (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<AWSRelatedAccountsResponse> listAWSRelatedAccountsAsync(String filterManagementAccountId)
See listAWSRelatedAccountsWithHttpInfoAsync(java.lang.String).
filterManagementAccountId - The ID of the management account to filter by. (required)@Deprecated public ApiResponse<AWSRelatedAccountsResponse> listAWSRelatedAccountsWithHttpInfo(String filterManagementAccountId) throws ApiException
filterManagementAccountId - The ID of the management account to filter by. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
@Deprecated public CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> listAWSRelatedAccountsWithHttpInfoAsync(String filterManagementAccountId)
filterManagementAccountId - The ID of the management account to filter by. (required)public AwsCURConfigsResponse listCostAWSCURConfigs() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<AwsCURConfigsResponse> listCostAWSCURConfigsAsync()
public ApiResponse<AwsCURConfigsResponse> listCostAWSCURConfigsWithHttpInfo() 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<AwsCURConfigsResponse>> listCostAWSCURConfigsWithHttpInfoAsync()
public AzureUCConfigsResponse listCostAzureUCConfigs() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<AzureUCConfigsResponse> listCostAzureUCConfigsAsync()
public ApiResponse<AzureUCConfigsResponse> listCostAzureUCConfigsWithHttpInfo() 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<AzureUCConfigsResponse>> listCostAzureUCConfigsWithHttpInfoAsync()
public CustomCostsFileListResponse listCustomCostsFiles() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<CustomCostsFileListResponse> listCustomCostsFilesAsync()
public ApiResponse<CustomCostsFileListResponse> listCustomCostsFilesWithHttpInfo() 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<CustomCostsFileListResponse>> listCustomCostsFilesWithHttpInfoAsync()
public AwsCURConfigsResponse updateCostAWSCURConfig(String cloudAccountId, AwsCURConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<AwsCURConfigsResponse> updateCostAWSCURConfigAsync(String cloudAccountId, AwsCURConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public ApiResponse<AwsCURConfigsResponse> updateCostAWSCURConfigWithHttpInfo(String cloudAccountId, AwsCURConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AwsCURConfigsResponse>> updateCostAWSCURConfigWithHttpInfoAsync(String cloudAccountId, AwsCURConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public AzureUCConfigPairsResponse updateCostAzureUCConfigs(String cloudAccountId, AzureUCConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<AzureUCConfigPairsResponse> updateCostAzureUCConfigsAsync(String cloudAccountId, AzureUCConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public ApiResponse<AzureUCConfigPairsResponse> updateCostAzureUCConfigsWithHttpInfo(String cloudAccountId, AzureUCConfigPatchRequest body) throws ApiException
cloudAccountId - Cloud Account id. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AzureUCConfigPairsResponse>> updateCostAzureUCConfigsWithHttpInfoAsync(String cloudAccountId, AzureUCConfigPatchRequest body)
cloudAccountId - Cloud Account id. (required)body - (required)public CustomCostsFileUploadResponse uploadCustomCostsFile(List<CustomCostsFileLineItem> body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<CustomCostsFileUploadResponse> uploadCustomCostsFileAsync(List<CustomCostsFileLineItem> body)
body - (required)public ApiResponse<CustomCostsFileUploadResponse> uploadCustomCostsFileWithHttpInfo(List<CustomCostsFileLineItem> body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | Accepted | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CustomCostsFileUploadResponse>> uploadCustomCostsFileWithHttpInfoAsync(List<CustomCostsFileLineItem> body)
body - (required)Copyright © 2024. All rights reserved.