AmazonSerializableWebServiceRequest.cpp 630 B

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