@@ -1384,12 +1384,25 @@ public CompletableFuture<ApiResponse<HourlyUsageResponse>> getHourlyUsageWithHtt
13841384
13851385 /** Manage optional parameters to getMonthlyCostAttribution. */
13861386 public static class GetMonthlyCostAttributionOptionalParameters {
1387+ private OffsetDateTime endMonth ;
13871388 private SortDirection sortDirection ;
13881389 private String sortName ;
13891390 private String tagBreakdownKeys ;
13901391 private String nextRecordId ;
13911392 private Boolean includeDescendants ;
13921393
1394+ /**
1395+ * Set endMonth.
1396+ *
1397+ * @param endMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code>
1398+ * for cost ending this month. (optional)
1399+ * @return GetMonthlyCostAttributionOptionalParameters
1400+ */
1401+ public GetMonthlyCostAttributionOptionalParameters endMonth (OffsetDateTime endMonth ) {
1402+ this .endMonth = endMonth ;
1403+ return this ;
1404+ }
1405+
13931406 /**
13941407 * Set sortDirection.
13951408 *
@@ -1460,8 +1473,6 @@ public GetMonthlyCostAttributionOptionalParameters includeDescendants(
14601473 *
14611474 * @param startMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code>
14621475 * for cost beginning in this month. (required)
1463- * @param endMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code> for
1464- * cost ending this month. (required)
14651476 * @param fields Comma-separated list specifying cost types (e.g., <code>
14661477 * <billing_dimension>_on_demand_cost</code>, <code>
14671478 * <billing_dimension>_committed_cost</code>, <code><billing_dimension>_total_cost
@@ -1477,9 +1488,9 @@ public GetMonthlyCostAttributionOptionalParameters includeDescendants(
14771488 * @throws ApiException if fails to make API call
14781489 */
14791490 public MonthlyCostAttributionResponse getMonthlyCostAttribution (
1480- OffsetDateTime startMonth , OffsetDateTime endMonth , String fields ) throws ApiException {
1491+ OffsetDateTime startMonth , String fields ) throws ApiException {
14811492 return getMonthlyCostAttributionWithHttpInfo (
1482- startMonth , endMonth , fields , new GetMonthlyCostAttributionOptionalParameters ())
1493+ startMonth , fields , new GetMonthlyCostAttributionOptionalParameters ())
14831494 .getData ();
14841495 }
14851496
@@ -1490,8 +1501,6 @@ startMonth, endMonth, fields, new GetMonthlyCostAttributionOptionalParameters())
14901501 *
14911502 * @param startMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code>
14921503 * for cost beginning in this month. (required)
1493- * @param endMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code> for
1494- * cost ending this month. (required)
14951504 * @param fields Comma-separated list specifying cost types (e.g., <code>
14961505 * <billing_dimension>_on_demand_cost</code>, <code>
14971506 * <billing_dimension>_committed_cost</code>, <code><billing_dimension>_total_cost
@@ -1506,9 +1515,9 @@ startMonth, endMonth, fields, new GetMonthlyCostAttributionOptionalParameters())
15061515 * @return CompletableFuture<MonthlyCostAttributionResponse>
15071516 */
15081517 public CompletableFuture <MonthlyCostAttributionResponse > getMonthlyCostAttributionAsync (
1509- OffsetDateTime startMonth , OffsetDateTime endMonth , String fields ) {
1518+ OffsetDateTime startMonth , String fields ) {
15101519 return getMonthlyCostAttributionWithHttpInfoAsync (
1511- startMonth , endMonth , fields , new GetMonthlyCostAttributionOptionalParameters ())
1520+ startMonth , fields , new GetMonthlyCostAttributionOptionalParameters ())
15121521 .thenApply (
15131522 response -> {
15141523 return response .getData ();
@@ -1522,8 +1531,6 @@ startMonth, endMonth, fields, new GetMonthlyCostAttributionOptionalParameters())
15221531 *
15231532 * @param startMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code>
15241533 * for cost beginning in this month. (required)
1525- * @param endMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code> for
1526- * cost ending this month. (required)
15271534 * @param fields Comma-separated list specifying cost types (e.g., <code>
15281535 * <billing_dimension>_on_demand_cost</code>, <code>
15291536 * <billing_dimension>_committed_cost</code>, <code><billing_dimension>_total_cost
@@ -1541,12 +1548,10 @@ startMonth, endMonth, fields, new GetMonthlyCostAttributionOptionalParameters())
15411548 */
15421549 public MonthlyCostAttributionResponse getMonthlyCostAttribution (
15431550 OffsetDateTime startMonth ,
1544- OffsetDateTime endMonth ,
15451551 String fields ,
15461552 GetMonthlyCostAttributionOptionalParameters parameters )
15471553 throws ApiException {
1548- return getMonthlyCostAttributionWithHttpInfo (startMonth , endMonth , fields , parameters )
1549- .getData ();
1554+ return getMonthlyCostAttributionWithHttpInfo (startMonth , fields , parameters ).getData ();
15501555 }
15511556
15521557 /**
@@ -1556,8 +1561,6 @@ public MonthlyCostAttributionResponse getMonthlyCostAttribution(
15561561 *
15571562 * @param startMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code>
15581563 * for cost beginning in this month. (required)
1559- * @param endMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code> for
1560- * cost ending this month. (required)
15611564 * @param fields Comma-separated list specifying cost types (e.g., <code>
15621565 * <billing_dimension>_on_demand_cost</code>, <code>
15631566 * <billing_dimension>_committed_cost</code>, <code><billing_dimension>_total_cost
@@ -1574,10 +1577,9 @@ public MonthlyCostAttributionResponse getMonthlyCostAttribution(
15741577 */
15751578 public CompletableFuture <MonthlyCostAttributionResponse > getMonthlyCostAttributionAsync (
15761579 OffsetDateTime startMonth ,
1577- OffsetDateTime endMonth ,
15781580 String fields ,
15791581 GetMonthlyCostAttributionOptionalParameters parameters ) {
1580- return getMonthlyCostAttributionWithHttpInfoAsync (startMonth , endMonth , fields , parameters )
1582+ return getMonthlyCostAttributionWithHttpInfoAsync (startMonth , fields , parameters )
15811583 .thenApply (
15821584 response -> {
15831585 return response .getData ();
@@ -1604,8 +1606,6 @@ public CompletableFuture<MonthlyCostAttributionResponse> getMonthlyCostAttributi
16041606 *
16051607 * @param startMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code>
16061608 * for cost beginning in this month. (required)
1607- * @param endMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code> for
1608- * cost ending this month. (required)
16091609 * @param fields Comma-separated list specifying cost types (e.g., <code>
16101610 * <billing_dimension>_on_demand_cost</code>, <code>
16111611 * <billing_dimension>_committed_cost</code>, <code><billing_dimension>_total_cost
@@ -1632,7 +1632,6 @@ public CompletableFuture<MonthlyCostAttributionResponse> getMonthlyCostAttributi
16321632 */
16331633 public ApiResponse <MonthlyCostAttributionResponse > getMonthlyCostAttributionWithHttpInfo (
16341634 OffsetDateTime startMonth ,
1635- OffsetDateTime endMonth ,
16361635 String fields ,
16371636 GetMonthlyCostAttributionOptionalParameters parameters )
16381637 throws ApiException {
@@ -1652,17 +1651,12 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
16521651 "Missing the required parameter 'startMonth' when calling getMonthlyCostAttribution" );
16531652 }
16541653
1655- // verify the required parameter 'endMonth' is set
1656- if (endMonth == null ) {
1657- throw new ApiException (
1658- 400 , "Missing the required parameter 'endMonth' when calling getMonthlyCostAttribution" );
1659- }
1660-
16611654 // verify the required parameter 'fields' is set
16621655 if (fields == null ) {
16631656 throw new ApiException (
16641657 400 , "Missing the required parameter 'fields' when calling getMonthlyCostAttribution" );
16651658 }
1659+ OffsetDateTime endMonth = parameters .endMonth ;
16661660 SortDirection sortDirection = parameters .sortDirection ;
16671661 String sortName = parameters .sortName ;
16681662 String tagBreakdownKeys = parameters .tagBreakdownKeys ;
@@ -1675,8 +1669,8 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
16751669 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
16761670
16771671 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "start_month" , startMonth ));
1678- localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "end_month" , endMonth ));
16791672 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "fields" , fields ));
1673+ localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "end_month" , endMonth ));
16801674 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "sort_direction" , sortDirection ));
16811675 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "sort_name" , sortName ));
16821676 localVarQueryParams .addAll (
@@ -1712,8 +1706,6 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
17121706 *
17131707 * @param startMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code>
17141708 * for cost beginning in this month. (required)
1715- * @param endMonth Datetime in ISO-8601 format, UTC, precise to month: <code>[YYYY-MM]</code> for
1716- * cost ending this month. (required)
17171709 * @param fields Comma-separated list specifying cost types (e.g., <code>
17181710 * <billing_dimension>_on_demand_cost</code>, <code>
17191711 * <billing_dimension>_committed_cost</code>, <code><billing_dimension>_total_cost
@@ -1731,7 +1723,6 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
17311723 public CompletableFuture <ApiResponse <MonthlyCostAttributionResponse >>
17321724 getMonthlyCostAttributionWithHttpInfoAsync (
17331725 OffsetDateTime startMonth ,
1734- OffsetDateTime endMonth ,
17351726 String fields ,
17361727 GetMonthlyCostAttributionOptionalParameters parameters ) {
17371728 // Check if unstable operation is enabled
@@ -1759,17 +1750,6 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
17591750 return result ;
17601751 }
17611752
1762- // verify the required parameter 'endMonth' is set
1763- if (endMonth == null ) {
1764- CompletableFuture <ApiResponse <MonthlyCostAttributionResponse >> result =
1765- new CompletableFuture <>();
1766- result .completeExceptionally (
1767- new ApiException (
1768- 400 ,
1769- "Missing the required parameter 'endMonth' when calling getMonthlyCostAttribution" ));
1770- return result ;
1771- }
1772-
17731753 // verify the required parameter 'fields' is set
17741754 if (fields == null ) {
17751755 CompletableFuture <ApiResponse <MonthlyCostAttributionResponse >> result =
@@ -1780,6 +1760,7 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
17801760 "Missing the required parameter 'fields' when calling getMonthlyCostAttribution" ));
17811761 return result ;
17821762 }
1763+ OffsetDateTime endMonth = parameters .endMonth ;
17831764 SortDirection sortDirection = parameters .sortDirection ;
17841765 String sortName = parameters .sortName ;
17851766 String tagBreakdownKeys = parameters .tagBreakdownKeys ;
@@ -1792,8 +1773,8 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
17921773 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
17931774
17941775 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "start_month" , startMonth ));
1795- localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "end_month" , endMonth ));
17961776 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "fields" , fields ));
1777+ localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "end_month" , endMonth ));
17971778 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "sort_direction" , sortDirection ));
17981779 localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "sort_name" , sortName ));
17991780 localVarQueryParams .addAll (
0 commit comments