AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContentBody.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-agent-runtime/model/ImageInput.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 ContentBody() = default;
41 AWS_BEDROCKAGENTRUNTIME_API ContentBody(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API ContentBody& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetBody() const { return m_body; }
51 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
52 template<typename BodyT = Aws::String>
53 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
54 template<typename BodyT = Aws::String>
55 ContentBody& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
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) { m_imagesHasBeenSet = true; m_images = std::forward<ImagesT>(value); }
71 template<typename ImagesT = Aws::Vector<ImageInput>>
72 ContentBody& WithImages(ImagesT&& value) { SetImages(std::forward<ImagesT>(value)); return *this;}
73 template<typename ImagesT = ImageInput>
74 ContentBody& AddImages(ImagesT&& value) { m_imagesHasBeenSet = true; m_images.emplace_back(std::forward<ImagesT>(value)); return *this; }
76 private:
77
78 Aws::String m_body;
79 bool m_bodyHasBeenSet = false;
80
82 bool m_imagesHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace BedrockAgentRuntime
87} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API ContentBody()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBody & WithBody(BodyT &&value)
Definition ContentBody.h:55
AWS_BEDROCKAGENTRUNTIME_API ContentBody(Aws::Utils::Json::JsonView jsonValue)
ContentBody & AddImages(ImagesT &&value)
Definition ContentBody.h:74
ContentBody & WithImages(ImagesT &&value)
Definition ContentBody.h:72
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:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue