73 lines
1.5 KiB
C++
73 lines
1.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/budgets/model/DescribeBudgetPerformanceHistoryRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Budgets::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
DescribeBudgetPerformanceHistoryRequest::DescribeBudgetPerformanceHistoryRequest() :
|
|
m_accountIdHasBeenSet(false),
|
|
m_budgetNameHasBeenSet(false),
|
|
m_timePeriodHasBeenSet(false),
|
|
m_maxResults(0),
|
|
m_maxResultsHasBeenSet(false),
|
|
m_nextTokenHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String DescribeBudgetPerformanceHistoryRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_accountIdHasBeenSet)
|
|
{
|
|
payload.WithString("AccountId", m_accountId);
|
|
|
|
}
|
|
|
|
if(m_budgetNameHasBeenSet)
|
|
{
|
|
payload.WithString("BudgetName", m_budgetName);
|
|
|
|
}
|
|
|
|
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 DescribeBudgetPerformanceHistoryRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSBudgetServiceGateway.DescribeBudgetPerformanceHistory"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|