AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApiRequestBody.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/bedrock-agent-runtime/model/PropertyParameters.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody() = default;
41 AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Map<Aws::String, PropertyParameters>& GetContent() const { return m_content; }
52 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
53 template<typename ContentT = Aws::Map<Aws::String, PropertyParameters>>
54 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
55 template<typename ContentT = Aws::Map<Aws::String, PropertyParameters>>
56 ApiRequestBody& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
57 template<typename ContentKeyT = Aws::String, typename ContentValueT = PropertyParameters>
58 ApiRequestBody& AddContent(ContentKeyT&& key, ContentValueT&& value) {
59 m_contentHasBeenSet = true; m_content.emplace(std::forward<ContentKeyT>(key), std::forward<ContentValueT>(value)); return *this;
60 }
62 private:
63
65 bool m_contentHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace BedrockAgentRuntime
70} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody()=default
ApiRequestBody & AddContent(ContentKeyT &&key, ContentValueT &&value)
ApiRequestBody & WithContent(ContentT &&value)
const Aws::Map< Aws::String, PropertyParameters > & GetContent() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue