AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RequestBody.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/Parameter.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime {
23namespace Model {
24
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API RequestBody() = default;
33 AWS_BEDROCKAGENTRUNTIME_API RequestBody(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Map<Aws::String, Aws::Vector<Parameter>>& GetContent() const { return m_content; }
42 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
43 template <typename ContentT = Aws::Map<Aws::String, Aws::Vector<Parameter>>>
44 void SetContent(ContentT&& value) {
45 m_contentHasBeenSet = true;
46 m_content = std::forward<ContentT>(value);
47 }
48 template <typename ContentT = Aws::Map<Aws::String, Aws::Vector<Parameter>>>
50 SetContent(std::forward<ContentT>(value));
51 return *this;
52 }
53 template <typename ContentKeyT = Aws::String, typename ContentValueT = Aws::Vector<Parameter>>
55 m_contentHasBeenSet = true;
56 m_content.emplace(std::forward<ContentKeyT>(key), std::forward<ContentValueT>(value));
57 return *this;
58 }
60 private:
62 bool m_contentHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace BedrockAgentRuntime
67} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
RequestBody & WithContent(ContentT &&value)
Definition RequestBody.h:49
const Aws::Map< Aws::String, Aws::Vector< Parameter > > & GetContent() const
Definition RequestBody.h:41
AWS_BEDROCKAGENTRUNTIME_API RequestBody(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RequestBody & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestBody & AddContent(ContentKeyT &&key, ContentValueT &&value)
Definition RequestBody.h:54
AWS_BEDROCKAGENTRUNTIME_API RequestBody()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue