AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DocumentContent.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/CustomContent.h>
9#include <aws/bedrock-agent/model/ContentDataSourceType.h>
10#include <aws/bedrock-agent/model/S3Content.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 DocumentContent() = default;
39 AWS_BEDROCKAGENT_API DocumentContent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API DocumentContent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const CustomContent& GetCustom() const { return m_custom; }
50 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
51 template<typename CustomT = CustomContent>
52 void SetCustom(CustomT&& value) { m_customHasBeenSet = true; m_custom = std::forward<CustomT>(value); }
53 template<typename CustomT = CustomContent>
54 DocumentContent& WithCustom(CustomT&& value) { SetCustom(std::forward<CustomT>(value)); return *this;}
56
58
62 inline ContentDataSourceType GetDataSourceType() const { return m_dataSourceType; }
63 inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; }
64 inline void SetDataSourceType(ContentDataSourceType value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = value; }
67
69
73 inline const S3Content& GetS3() const { return m_s3; }
74 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
75 template<typename S3T = S3Content>
76 void SetS3(S3T&& value) { m_s3HasBeenSet = true; m_s3 = std::forward<S3T>(value); }
77 template<typename S3T = S3Content>
78 DocumentContent& WithS3(S3T&& value) { SetS3(std::forward<S3T>(value)); return *this;}
80 private:
81
82 CustomContent m_custom;
83 bool m_customHasBeenSet = false;
84
86 bool m_dataSourceTypeHasBeenSet = false;
87
88 S3Content m_s3;
89 bool m_s3HasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace BedrockAgent
94} // 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)
Aws::Utils::Json::JsonValue JsonValue