1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/autoscaling/model/DeleteAutoScalingGroupRequest.h>
7 #include <aws/core/utils/StringUtils.h>
8 #include <aws/core/utils/memory/stl/AWSStringStream.h>
9 
10 using namespace Aws::AutoScaling::Model;
11 using namespace Aws::Utils;
12 
DeleteAutoScalingGroupRequest()13 DeleteAutoScalingGroupRequest::DeleteAutoScalingGroupRequest() :
14     m_autoScalingGroupNameHasBeenSet(false),
15     m_forceDelete(false),
16     m_forceDeleteHasBeenSet(false)
17 {
18 }
19 
SerializePayload() const20 Aws::String DeleteAutoScalingGroupRequest::SerializePayload() const
21 {
22   Aws::StringStream ss;
23   ss << "Action=DeleteAutoScalingGroup&";
24   if(m_autoScalingGroupNameHasBeenSet)
25   {
26     ss << "AutoScalingGroupName=" << StringUtils::URLEncode(m_autoScalingGroupName.c_str()) << "&";
27   }
28 
29   if(m_forceDeleteHasBeenSet)
30   {
31     ss << "ForceDelete=" << std::boolalpha << m_forceDelete << "&";
32   }
33 
34   ss << "Version=2011-01-01";
35   return ss.str();
36 }
37 
38 
DumpBodyToUrl(Aws::Http::URI & uri) const39 void  DeleteAutoScalingGroupRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
40 {
41   uri.SetQueryString(SerializePayload());
42 }
43