/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/redshift/model/CreateSnapshotCopyGrantRequest.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> using namespace Aws::Redshift::Model; using namespace Aws::Utils; CreateSnapshotCopyGrantRequest::CreateSnapshotCopyGrantRequest() : m_snapshotCopyGrantNameHasBeenSet(false), m_kmsKeyIdHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateSnapshotCopyGrantRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=CreateSnapshotCopyGrant&"; if(m_snapshotCopyGrantNameHasBeenSet) { ss << "SnapshotCopyGrantName=" << StringUtils::URLEncode(m_snapshotCopyGrantName.c_str()) << "&"; } if(m_kmsKeyIdHasBeenSet) { ss << "KmsKeyId=" << StringUtils::URLEncode(m_kmsKeyId.c_str()) << "&"; } if(m_tagsHasBeenSet) { unsigned tagsCount = 1; for(auto& item : m_tags) { item.OutputToStream(ss, "Tags.member.", tagsCount, ""); tagsCount++; } } ss << "Version=2012-12-01"; return ss.str(); } void CreateSnapshotCopyGrantRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }