AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DocumentContent.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/ContentDataSourceType.h>
9#include <aws/bedrock-agent/model/CustomContent.h>
10#include <aws/bedrock-agent/model/S3Content.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 DocumentContent() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline ContentDataSourceType GetDataSourceType() const { return m_dataSourceType; }
44 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
46 m_dataSourceTypeHasBeenSet = true;
47 m_dataSourceType = value;
48 }
50 SetDataSourceType(value);
51 return *this;
52 }
54
56
60 inline const CustomContent& GetCustom() const { return m_custom; }
61 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
62 template <typename CustomT = CustomContent>
63 void SetCustom(CustomT&& value) {
64 m_customHasBeenSet = true;
65 m_custom = std::forward<CustomT>(value);
66 }
67 template <typename CustomT = CustomContent>
69 SetCustom(std::forward<CustomT>(value));
70 return *this;
71 }
73
75
79 inline const S3Content& GetS3() const { return m_s3; }
80 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
81 template <typename S3T = S3Content>
82 void SetS3(S3T&& value) {
83 m_s3HasBeenSet = true;
84 m_s3 = std::forward<S3T>(value);
85 }
86 template <typename S3T = S3Content>
88 SetS3(std::forward<S3T>(value));
89 return *this;
90 }
92 private:
94
95 CustomContent m_custom;
96
97 S3Content m_s3;
98 bool m_dataSourceTypeHasBeenSet = false;
99 bool m_customHasBeenSet = false;
100 bool m_s3HasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace BedrockAgent
105} // namespace Aws
AWS_BEDROCKAGENT_API DocumentContent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDataSourceType(ContentDataSourceType value)
ContentDataSourceType GetDataSourceType() const
AWS_BEDROCKAGENT_API DocumentContent(Aws::Utils::Json::JsonView jsonValue)
DocumentContent & WithCustom(CustomT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentContent & WithS3(S3T &&value)
const CustomContent & GetCustom() const
AWS_BEDROCKAGENT_API DocumentContent()=default
DocumentContent & WithDataSourceType(ContentDataSourceType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue