This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-pinpoint/source/model/GetCampaignDateRangeKpiRequest.cpp

69 lines
1.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/pinpoint/model/GetCampaignDateRangeKpiRequest.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::Pinpoint::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
GetCampaignDateRangeKpiRequest::GetCampaignDateRangeKpiRequest() :
m_applicationIdHasBeenSet(false),
m_campaignIdHasBeenSet(false),
m_endTimeHasBeenSet(false),
m_kpiNameHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_pageSizeHasBeenSet(false),
m_startTimeHasBeenSet(false)
{
}
Aws::String GetCampaignDateRangeKpiRequest::SerializePayload() const
{
return {};
}
void GetCampaignDateRangeKpiRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_endTimeHasBeenSet)
{
ss << m_endTime.ToGmtString(DateFormat::RFC822);
uri.AddQueryStringParameter("end-time", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("next-token", ss.str());
ss.str("");
}
if(m_pageSizeHasBeenSet)
{
ss << m_pageSize;
uri.AddQueryStringParameter("page-size", ss.str());
ss.str("");
}
if(m_startTimeHasBeenSet)
{
ss << m_startTime.ToGmtString(DateFormat::RFC822);
uri.AddQueryStringParameter("start-time", ss.str());
ss.str("");
}
}