blob: 0c401b01b20b4f0a5b645037944614091a78d03b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws;
std::shared_ptr<Aws::IOStream> AmazonSerializableWebServiceRequest::GetBody() const
{
Aws::String&& payload = SerializePayload();
std::shared_ptr<Aws::IOStream> payloadBody;
if (!payload.empty())
{
payloadBody = Aws::MakeShared<Aws::StringStream>("AmazonSerializableWebServiceRequest");
*payloadBody << payload;
}
return payloadBody;
}
|