/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SNS::Model; using namespace Aws::Utils; ListSubscriptionsByTopicRequest::ListSubscriptionsByTopicRequest() : m_topicArnHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String ListSubscriptionsByTopicRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=ListSubscriptionsByTopic&"; if(m_topicArnHasBeenSet) { ss << "TopicArn=" << StringUtils::URLEncode(m_topicArn.c_str()) << "&"; } if(m_nextTokenHasBeenSet) { ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; } ss << "Version=2010-03-31"; return ss.str(); } void ListSubscriptionsByTopicRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }