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/TestTypeRequest.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 TestTypeRequest()13TestTypeRequest::TestTypeRequest() : 14 m_arnHasBeenSet(false), 15 m_type(ThirdPartyType::NOT_SET), 16 m_typeHasBeenSet(false), 17 m_typeNameHasBeenSet(false), 18 m_versionIdHasBeenSet(false), 19 m_logDeliveryBucketHasBeenSet(false) 20 { 21 } 22 SerializePayload() const23Aws::String TestTypeRequest::SerializePayload() const 24 { 25 Aws::StringStream ss; 26 ss << "Action=TestType&"; 27 if(m_arnHasBeenSet) 28 { 29 ss << "Arn=" << StringUtils::URLEncode(m_arn.c_str()) << "&"; 30 } 31 32 if(m_typeHasBeenSet) 33 { 34 ss << "Type=" << ThirdPartyTypeMapper::GetNameForThirdPartyType(m_type) << "&"; 35 } 36 37 if(m_typeNameHasBeenSet) 38 { 39 ss << "TypeName=" << StringUtils::URLEncode(m_typeName.c_str()) << "&"; 40 } 41 42 if(m_versionIdHasBeenSet) 43 { 44 ss << "VersionId=" << StringUtils::URLEncode(m_versionId.c_str()) << "&"; 45 } 46 47 if(m_logDeliveryBucketHasBeenSet) 48 { 49 ss << "LogDeliveryBucket=" << StringUtils::URLEncode(m_logDeliveryBucket.c_str()) << "&"; 50 } 51 52 ss << "Version=2010-05-15"; 53 return ss.str(); 54 } 55 56 DumpBodyToUrl(Aws::Http::URI & uri) const57void TestTypeRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const 58 { 59 uri.SetQueryString(SerializePayload()); 60 } 61