AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
ApiRequestBody.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/PropertyParameters.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Map<Aws::String, PropertyParameters>& GetContent() const { return m_content; }
46 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
47 template <typename ContentT = Aws::Map<Aws::String, PropertyParameters>>
48 void SetContent(ContentT&& value) {
49 m_contentHasBeenSet = true;
50 m_content = std::forward<ContentT>(value);
51 }
52 template <typename ContentT = Aws::Map<Aws::String, PropertyParameters>>
54 SetContent(std::forward<ContentT>(value));
55 return *this;
56 }
57 template <typename ContentKeyT = Aws::String, typename ContentValueT = PropertyParameters>
59 m_contentHasBeenSet = true;
60 m_content.emplace(std::forward<ContentKeyT>(key), std::forward<ContentValueT>(value));
61 return *this;
62 }
64 private:
66 bool m_contentHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace BedrockAgentRuntime
71} // 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::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