1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/cloudformation/model/ListStackSetOperationResultsRequest.h> 7 #include <aws/core/utils/StringUtils.h> 8 #include <aws/core/utils/memory/stl/AWSStringStream.h> 9 10 using namespace Aws::CloudFormation::Model; 11 using namespace Aws::Utils; 12 ListStackSetOperationResultsRequest()13ListStackSetOperationResultsRequest::ListStackSetOperationResultsRequest() : 14 m_stackSetNameHasBeenSet(false), 15 m_operationIdHasBeenSet(false), 16 m_nextTokenHasBeenSet(false), 17 m_maxResults(0), 18 m_maxResultsHasBeenSet(false), 19 m_callAs(CallAs::NOT_SET), 20 m_callAsHasBeenSet(false) 21 { 22 } 23 SerializePayload() const24Aws::String ListStackSetOperationResultsRequest::SerializePayload() const 25 { 26 Aws::StringStream ss; 27 ss << "Action=ListStackSetOperationResults&"; 28 if(m_stackSetNameHasBeenSet) 29 { 30 ss << "StackSetName=" << StringUtils::URLEncode(m_stackSetName.c_str()) << "&"; 31 } 32 33 if(m_operationIdHasBeenSet) 34 { 35 ss << "OperationId=" << StringUtils::URLEncode(m_operationId.c_str()) << "&"; 36 } 37 38 if(m_nextTokenHasBeenSet) 39 { 40 ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&"; 41 } 42 43 if(m_maxResultsHasBeenSet) 44 { 45 ss << "MaxResults=" << m_maxResults << "&"; 46 } 47 48 if(m_callAsHasBeenSet) 49 { 50 ss << "CallAs=" << CallAsMapper::GetNameForCallAs(m_callAs) << "&"; 51 } 52 53 ss << "Version=2010-05-15"; 54 return ss.str(); 55 } 56 57 DumpBodyToUrl(Aws::Http::URI & uri) const58void ListStackSetOperationResultsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const 59 { 60 uri.SetQueryString(SerializePayload()); 61 } 62