72 lines
1.6 KiB
C++
72 lines
1.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/ce/model/GetDimensionValuesRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CostExplorer::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
GetDimensionValuesRequest::GetDimensionValuesRequest() :
|
|
m_searchStringHasBeenSet(false),
|
|
m_timePeriodHasBeenSet(false),
|
|
m_dimension(Dimension::NOT_SET),
|
|
m_dimensionHasBeenSet(false),
|
|
m_context(Context::NOT_SET),
|
|
m_contextHasBeenSet(false),
|
|
m_nextPageTokenHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String GetDimensionValuesRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_searchStringHasBeenSet)
|
|
{
|
|
payload.WithString("SearchString", m_searchString);
|
|
|
|
}
|
|
|
|
if(m_timePeriodHasBeenSet)
|
|
{
|
|
payload.WithObject("TimePeriod", m_timePeriod.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_dimensionHasBeenSet)
|
|
{
|
|
payload.WithString("Dimension", DimensionMapper::GetNameForDimension(m_dimension));
|
|
}
|
|
|
|
if(m_contextHasBeenSet)
|
|
{
|
|
payload.WithString("Context", ContextMapper::GetNameForContext(m_context));
|
|
}
|
|
|
|
if(m_nextPageTokenHasBeenSet)
|
|
{
|
|
payload.WithString("NextPageToken", m_nextPageToken);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection GetDimensionValuesRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSInsightsIndexService.GetDimensionValues"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|