59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/codeguruprofiler/model/GetRecommendationsRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/http/URI.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CodeGuruProfiler::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws::Http;
|
|
|
|
GetRecommendationsRequest::GetRecommendationsRequest() :
|
|
m_endTimeHasBeenSet(false),
|
|
m_localeHasBeenSet(false),
|
|
m_profilingGroupNameHasBeenSet(false),
|
|
m_startTimeHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String GetRecommendationsRequest::SerializePayload() const
|
|
{
|
|
return {};
|
|
}
|
|
|
|
void GetRecommendationsRequest::AddQueryStringParameters(URI& uri) const
|
|
{
|
|
Aws::StringStream ss;
|
|
if(m_endTimeHasBeenSet)
|
|
{
|
|
ss << m_endTime.ToGmtString(DateFormat::RFC822);
|
|
uri.AddQueryStringParameter("endTime", ss.str());
|
|
ss.str("");
|
|
}
|
|
|
|
if(m_localeHasBeenSet)
|
|
{
|
|
ss << m_locale;
|
|
uri.AddQueryStringParameter("locale", ss.str());
|
|
ss.str("");
|
|
}
|
|
|
|
if(m_startTimeHasBeenSet)
|
|
{
|
|
ss << m_startTime.ToGmtString(DateFormat::RFC822);
|
|
uri.AddQueryStringParameter("startTime", ss.str());
|
|
ss.str("");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|