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-sns/source/model/SetSMSAttributesRequest.cpp

44 lines
1.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sns/model/SetSMSAttributesRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::SNS::Model;
using namespace Aws::Utils;
SetSMSAttributesRequest::SetSMSAttributesRequest() :
m_attributesHasBeenSet(false)
{
}
Aws::String SetSMSAttributesRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=SetSMSAttributes&";
if(m_attributesHasBeenSet)
{
unsigned attributesCount = 1;
for(auto& item : m_attributes)
{
ss << "attributes.entry." << attributesCount << ".key="
<< StringUtils::URLEncode(item.first.c_str()) << "&";
ss << "attributes.entry." << attributesCount << ".value="
<< StringUtils::URLEncode(item.second.c_str()) << "&";
attributesCount++;
}
}
ss << "Version=2010-03-31";
return ss.str();
}
void SetSMSAttributesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}