AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/TextContentDoc.h>
10#include <aws/bedrock-agent/model/InlineContentType.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 BedrockAgent
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BEDROCKAGENT_API InlineContent() = default;
39 AWS_BEDROCKAGENT_API InlineContent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API InlineContent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ByteContentDoc& GetByteContent() const { return m_byteContent; }
49 inline bool ByteContentHasBeenSet() const { return m_byteContentHasBeenSet; }
50 template<typename ByteContentT = ByteContentDoc>
51 void SetByteContent(ByteContentT&& value) { m_byteContentHasBeenSet = true; m_byteContent = std::forward<ByteContentT>(value); }
52 template<typename ByteContentT = ByteContentDoc>
53 InlineContent& WithByteContent(ByteContentT&& value) { SetByteContent(std::forward<ByteContentT>(value)); return *this;}
55
57
60 inline const TextContentDoc& GetTextContent() const { return m_textContent; }
61 inline bool TextContentHasBeenSet() const { return m_textContentHasBeenSet; }
62 template<typename TextContentT = TextContentDoc>
63 void SetTextContent(TextContentT&& value) { m_textContentHasBeenSet = true; m_textContent = std::forward<TextContentT>(value); }
64 template<typename TextContentT = TextContentDoc>
65 InlineContent& WithTextContent(TextContentT&& value) { SetTextContent(std::forward<TextContentT>(value)); return *this;}
67
69
72 inline InlineContentType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(InlineContentType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline InlineContent& WithType(InlineContentType value) { SetType(value); return *this;}
77 private:
78
79 ByteContentDoc m_byteContent;
80 bool m_byteContentHasBeenSet = false;
81
82 TextContentDoc m_textContent;
83 bool m_textContentHasBeenSet = false;
84
86 bool m_typeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace BedrockAgent
91} // 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)
Aws::Utils::Json::JsonValue JsonValue