AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContent(const Aws::Map<Aws::String, PropertyParameters>& value) { m_contentHasBeenSet = true; m_content = value; }
54 inline void SetContent(Aws::Map<Aws::String, PropertyParameters>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
56 inline ApiRequestBody& WithContent(Aws::Map<Aws::String, PropertyParameters>&& value) { SetContent(std::move(value)); return *this;}
57 inline ApiRequestBody& AddContent(const Aws::String& key, const PropertyParameters& value) { m_contentHasBeenSet = true; m_content.emplace(key, value); return *this; }
58 inline ApiRequestBody& AddContent(Aws::String&& key, const PropertyParameters& value) { m_contentHasBeenSet = true; m_content.emplace(std::move(key), value); return *this; }
59 inline ApiRequestBody& AddContent(const Aws::String& key, PropertyParameters&& value) { m_contentHasBeenSet = true; m_content.emplace(key, std::move(value)); return *this; }
60 inline ApiRequestBody& AddContent(Aws::String&& key, PropertyParameters&& value) { m_contentHasBeenSet = true; m_content.emplace(std::move(key), std::move(value)); return *this; }
61 inline ApiRequestBody& AddContent(const char* key, PropertyParameters&& value) { m_contentHasBeenSet = true; m_content.emplace(key, std::move(value)); return *this; }
62 inline ApiRequestBody& AddContent(const char* key, const PropertyParameters& value) { m_contentHasBeenSet = true; m_content.emplace(key, value); return *this; }
64 private:
65
67 bool m_contentHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace BedrockAgentRuntime
72} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody(Aws::Utils::Json::JsonView jsonValue)
ApiRequestBody & AddContent(Aws::String &&key, const PropertyParameters &value)
ApiRequestBody & AddContent(Aws::String &&key, PropertyParameters &&value)
ApiRequestBody & WithContent(const Aws::Map< Aws::String, PropertyParameters > &value)
ApiRequestBody & AddContent(const Aws::String &key, PropertyParameters &&value)
AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody()
void SetContent(Aws::Map< Aws::String, PropertyParameters > &&value)
ApiRequestBody & AddContent(const Aws::String &key, const PropertyParameters &value)
const Aws::Map< Aws::String, PropertyParameters > & GetContent() const
ApiRequestBody & AddContent(const char *key, const PropertyParameters &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ApiRequestBody & AddContent(const char *key, PropertyParameters &&value)
AWS_BEDROCKAGENTRUNTIME_API ApiRequestBody & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContent(const Aws::Map< Aws::String, PropertyParameters > &value)
ApiRequestBody & WithContent(Aws::Map< Aws::String, PropertyParameters > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue