AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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