1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/neptune/model/RemoveTagsFromResourceRequest.h>
7 #include <aws/core/utils/StringUtils.h>
8 #include <aws/core/utils/memory/stl/AWSStringStream.h>
9 
10 using namespace Aws::Neptune::Model;
11 using namespace Aws::Utils;
12 
RemoveTagsFromResourceRequest()13 RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest() :
14     m_resourceNameHasBeenSet(false),
15     m_tagKeysHasBeenSet(false)
16 {
17 }
18 
SerializePayload() const19 Aws::String RemoveTagsFromResourceRequest::SerializePayload() const
20 {
21   Aws::StringStream ss;
22   ss << "Action=RemoveTagsFromResource&";
23   if(m_resourceNameHasBeenSet)
24   {
25     ss << "ResourceName=" << StringUtils::URLEncode(m_resourceName.c_str()) << "&";
26   }
27 
28   if(m_tagKeysHasBeenSet)
29   {
30     unsigned tagKeysCount = 1;
31     for(auto& item : m_tagKeys)
32     {
33       ss << "TagKeys.member." << tagKeysCount << "="
34           << StringUtils::URLEncode(item.c_str()) << "&";
35       tagKeysCount++;
36     }
37   }
38 
39   ss << "Version=2014-10-31";
40   return ss.str();
41 }
42 
43 
DumpBodyToUrl(Aws::Http::URI & uri) const44 void  RemoveTagsFromResourceRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
45 {
46   uri.SetQueryString(SerializePayload());
47 }
48