AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContent(const Aws::Map<Aws::String, Aws::Vector<Parameter>>& value) { m_contentHasBeenSet = true; m_content = value; }
50 inline void SetContent(Aws::Map<Aws::String, Aws::Vector<Parameter>>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
51 inline RequestBody& WithContent(const Aws::Map<Aws::String, Aws::Vector<Parameter>>& value) { SetContent(value); return *this;}
52 inline RequestBody& WithContent(Aws::Map<Aws::String, Aws::Vector<Parameter>>&& value) { SetContent(std::move(value)); return *this;}
53 inline RequestBody& AddContent(const Aws::String& key, const Aws::Vector<Parameter>& value) { m_contentHasBeenSet = true; m_content.emplace(key, value); return *this; }
54 inline RequestBody& AddContent(Aws::String&& key, const Aws::Vector<Parameter>& value) { m_contentHasBeenSet = true; m_content.emplace(std::move(key), value); return *this; }
55 inline RequestBody& AddContent(const Aws::String& key, Aws::Vector<Parameter>&& value) { m_contentHasBeenSet = true; m_content.emplace(key, std::move(value)); return *this; }
56 inline RequestBody& AddContent(Aws::String&& key, Aws::Vector<Parameter>&& value) { m_contentHasBeenSet = true; m_content.emplace(std::move(key), std::move(value)); return *this; }
57 inline RequestBody& AddContent(const char* key, Aws::Vector<Parameter>&& value) { m_contentHasBeenSet = true; m_content.emplace(key, std::move(value)); return *this; }
58 inline RequestBody& AddContent(const char* key, const Aws::Vector<Parameter>& value) { m_contentHasBeenSet = true; m_content.emplace(key, value); return *this; }
60 private:
61
63 bool m_contentHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace BedrockAgentRuntime
68} // namespace Aws
RequestBody & AddContent(const Aws::String &key, Aws::Vector< Parameter > &&value)
Definition RequestBody.h:55
void SetContent(const Aws::Map< Aws::String, Aws::Vector< Parameter > > &value)
Definition RequestBody.h:49
RequestBody & WithContent(Aws::Map< Aws::String, Aws::Vector< Parameter > > &&value)
Definition RequestBody.h:52
RequestBody & AddContent(const char *key, Aws::Vector< Parameter > &&value)
Definition RequestBody.h:57
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(Aws::Map< Aws::String, Aws::Vector< Parameter > > &&value)
Definition RequestBody.h:50
RequestBody & AddContent(const Aws::String &key, const Aws::Vector< Parameter > &value)
Definition RequestBody.h:53
RequestBody & AddContent(const char *key, const Aws::Vector< Parameter > &value)
Definition RequestBody.h:58
RequestBody & WithContent(const Aws::Map< Aws::String, Aws::Vector< Parameter > > &value)
Definition RequestBody.h:51
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(Aws::String &&key, Aws::Vector< Parameter > &&value)
Definition RequestBody.h:56
RequestBody & AddContent(Aws::String &&key, const Aws::Vector< Parameter > &value)
Definition RequestBody.h:54
AWS_BEDROCKAGENTRUNTIME_API RequestBody()
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue