AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InlineContent.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/ByteContentDoc.h>
9#include <aws/bedrock-agent/model/InlineContentType.h>
10#include <aws/bedrock-agent/model/TextContentDoc.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
32 public:
33 AWS_BEDROCKAGENT_API InlineContent() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline InlineContentType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(InlineContentType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline const ByteContentDoc& GetByteContent() const { return m_byteContent; }
59 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
60 template <typename ByteContentT = ByteContentDoc>
62 m_byteContentHasBeenSet = true;
63 m_byteContent = std::forward<ByteContentT>(value);
64 }
65 template <typename ByteContentT = ByteContentDoc>
67 SetByteContent(std::forward<ByteContentT>(value));
68 return *this;
69 }
71
73
76 inline const TextContentDoc& GetTextContent() const { return m_textContent; }
77 inline bool TextContentHasBeenSet() const { return m_textContentHasBeenSet; }
78 template <typename TextContentT = TextContentDoc>
80 m_textContentHasBeenSet = true;
81 m_textContent = std::forward<TextContentT>(value);
82 }
83 template <typename TextContentT = TextContentDoc>
85 SetTextContent(std::forward<TextContentT>(value));
86 return *this;
87 }
89 private:
91
92 ByteContentDoc m_byteContent;
93
94 TextContentDoc m_textContent;
95 bool m_typeHasBeenSet = false;
96 bool m_byteContentHasBeenSet = false;
97 bool m_textContentHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockAgent
102} // namespace Aws
InlineContent & WithType(InlineContentType value)
AWS_BEDROCKAGENT_API InlineContent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTextContent(TextContentT &&value)
InlineContentType GetType() const
const ByteContentDoc & GetByteContent() const
void SetType(InlineContentType value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const TextContentDoc & GetTextContent() const
AWS_BEDROCKAGENT_API InlineContent()=default
InlineContent & WithByteContent(ByteContentT &&value)
void SetByteContent(ByteContentT &&value)
AWS_BEDROCKAGENT_API InlineContent(Aws::Utils::Json::JsonView jsonValue)
InlineContent & WithTextContent(TextContentT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue