/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Budgets::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DescribeBudgetActionHistoriesRequest::DescribeBudgetActionHistoriesRequest() : m_accountIdHasBeenSet(false), m_budgetNameHasBeenSet(false), m_actionIdHasBeenSet(false), m_timePeriodHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String DescribeBudgetActionHistoriesRequest::SerializePayload() const { JsonValue payload; if(m_accountIdHasBeenSet) { payload.WithString("AccountId", m_accountId); } if(m_budgetNameHasBeenSet) { payload.WithString("BudgetName", m_budgetName); } if(m_actionIdHasBeenSet) { payload.WithString("ActionId", m_actionId); } if(m_timePeriodHasBeenSet) { payload.WithObject("TimePeriod", m_timePeriod.Jsonize()); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DescribeBudgetActionHistoriesRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSBudgetServiceGateway.DescribeBudgetActionHistories")); return headers; }