36 lines
842 B
C++
36 lines
842 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/sns/model/GetTopicAttributesRequest.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
using namespace Aws::SNS::Model;
|
|
using namespace Aws::Utils;
|
|
|
|
GetTopicAttributesRequest::GetTopicAttributesRequest() :
|
|
m_topicArnHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String GetTopicAttributesRequest::SerializePayload() const
|
|
{
|
|
Aws::StringStream ss;
|
|
ss << "Action=GetTopicAttributes&";
|
|
if(m_topicArnHasBeenSet)
|
|
{
|
|
ss << "TopicArn=" << StringUtils::URLEncode(m_topicArn.c_str()) << "&";
|
|
}
|
|
|
|
ss << "Version=2010-03-31";
|
|
return ss.str();
|
|
}
|
|
|
|
|
|
void GetTopicAttributesRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|
{
|
|
uri.SetQueryString(SerializePayload());
|
|
}
|