AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ContentBody.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ImageInput.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 ContentBody() = default;
36 AWS_BEDROCKAGENTRUNTIME_API ContentBody(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetBody() const { return m_body; }
45 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
46 template <typename BodyT = Aws::String>
47 void SetBody(BodyT&& value) {
48 m_bodyHasBeenSet = true;
49 m_body = std::forward<BodyT>(value);
50 }
51 template <typename BodyT = Aws::String>
53 SetBody(std::forward<BodyT>(value));
54 return *this;
55 }
57
59
67 inline const Aws::Vector<ImageInput>& GetImages() const { return m_images; }
68 inline bool ImagesHasBeenSet() const { return m_imagesHasBeenSet; }
69 template <typename ImagesT = Aws::Vector<ImageInput>>
70 void SetImages(ImagesT&& value) {
71 m_imagesHasBeenSet = true;
72 m_images = std::forward<ImagesT>(value);
73 }
74 template <typename ImagesT = Aws::Vector<ImageInput>>
76 SetImages(std::forward<ImagesT>(value));
77 return *this;
78 }
79 template <typename ImagesT = ImageInput>
81 m_imagesHasBeenSet = true;
82 m_images.emplace_back(std::forward<ImagesT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_body;
88
90 bool m_bodyHasBeenSet = false;
91 bool m_imagesHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace BedrockAgentRuntime
96} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ContentBody()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBody & WithBody(BodyT &&value)
Definition ContentBody.h:52
AWS_BEDROCKAGENTRUNTIME_API ContentBody(Aws::Utils::Json::JsonView jsonValue)
ContentBody & AddImages(ImagesT &&value)
Definition ContentBody.h:80
ContentBody & WithImages(ImagesT &&value)
Definition ContentBody.h:75
const Aws::Vector< ImageInput > & GetImages() const
Definition ContentBody.h:67
AWS_BEDROCKAGENTRUNTIME_API ContentBody & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBody() const
Definition ContentBody.h:44
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue