AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataSourceConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/ConfluenceDataSourceConfiguration.h>
9#include <aws/bedrock-agent/model/S3DataSourceConfiguration.h>
10#include <aws/bedrock-agent/model/SalesforceDataSourceConfiguration.h>
11#include <aws/bedrock-agent/model/SharePointDataSourceConfiguration.h>
12#include <aws/bedrock-agent/model/DataSourceType.h>
13#include <aws/bedrock-agent/model/WebDataSourceConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_BEDROCKAGENT_API DataSourceConfiguration();
41 AWS_BEDROCKAGENT_API DataSourceConfiguration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const ConfluenceDataSourceConfiguration& GetConfluenceConfiguration() const{ return m_confluenceConfiguration; }
53 inline bool ConfluenceConfigurationHasBeenSet() const { return m_confluenceConfigurationHasBeenSet; }
54 inline void SetConfluenceConfiguration(const ConfluenceDataSourceConfiguration& value) { m_confluenceConfigurationHasBeenSet = true; m_confluenceConfiguration = value; }
55 inline void SetConfluenceConfiguration(ConfluenceDataSourceConfiguration&& value) { m_confluenceConfigurationHasBeenSet = true; m_confluenceConfiguration = std::move(value); }
59
61
65 inline const S3DataSourceConfiguration& GetS3Configuration() const{ return m_s3Configuration; }
66 inline bool S3ConfigurationHasBeenSet() const { return m_s3ConfigurationHasBeenSet; }
67 inline void SetS3Configuration(const S3DataSourceConfiguration& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = value; }
68 inline void SetS3Configuration(S3DataSourceConfiguration&& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = std::move(value); }
72
74
79 inline const SalesforceDataSourceConfiguration& GetSalesforceConfiguration() const{ return m_salesforceConfiguration; }
80 inline bool SalesforceConfigurationHasBeenSet() const { return m_salesforceConfigurationHasBeenSet; }
81 inline void SetSalesforceConfiguration(const SalesforceDataSourceConfiguration& value) { m_salesforceConfigurationHasBeenSet = true; m_salesforceConfiguration = value; }
82 inline void SetSalesforceConfiguration(SalesforceDataSourceConfiguration&& value) { m_salesforceConfigurationHasBeenSet = true; m_salesforceConfiguration = std::move(value); }
86
88
93 inline const SharePointDataSourceConfiguration& GetSharePointConfiguration() const{ return m_sharePointConfiguration; }
94 inline bool SharePointConfigurationHasBeenSet() const { return m_sharePointConfigurationHasBeenSet; }
95 inline void SetSharePointConfiguration(const SharePointDataSourceConfiguration& value) { m_sharePointConfigurationHasBeenSet = true; m_sharePointConfiguration = value; }
96 inline void SetSharePointConfiguration(SharePointDataSourceConfiguration&& value) { m_sharePointConfigurationHasBeenSet = true; m_sharePointConfiguration = std::move(value); }
100
102
105 inline const DataSourceType& GetType() const{ return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
108 inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
109 inline DataSourceConfiguration& WithType(const DataSourceType& value) { SetType(value); return *this;}
110 inline DataSourceConfiguration& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;}
112
114
119 inline const WebDataSourceConfiguration& GetWebConfiguration() const{ return m_webConfiguration; }
120 inline bool WebConfigurationHasBeenSet() const { return m_webConfigurationHasBeenSet; }
121 inline void SetWebConfiguration(const WebDataSourceConfiguration& value) { m_webConfigurationHasBeenSet = true; m_webConfiguration = value; }
122 inline void SetWebConfiguration(WebDataSourceConfiguration&& value) { m_webConfigurationHasBeenSet = true; m_webConfiguration = std::move(value); }
126 private:
127
128 ConfluenceDataSourceConfiguration m_confluenceConfiguration;
129 bool m_confluenceConfigurationHasBeenSet = false;
130
131 S3DataSourceConfiguration m_s3Configuration;
132 bool m_s3ConfigurationHasBeenSet = false;
133
134 SalesforceDataSourceConfiguration m_salesforceConfiguration;
135 bool m_salesforceConfigurationHasBeenSet = false;
136
137 SharePointDataSourceConfiguration m_sharePointConfiguration;
138 bool m_sharePointConfigurationHasBeenSet = false;
139
140 DataSourceType m_type;
141 bool m_typeHasBeenSet = false;
142
143 WebDataSourceConfiguration m_webConfiguration;
144 bool m_webConfigurationHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace BedrockAgent
149} // namespace Aws
DataSourceConfiguration & WithSalesforceConfiguration(const SalesforceDataSourceConfiguration &value)
void SetS3Configuration(S3DataSourceConfiguration &&value)
DataSourceConfiguration & WithS3Configuration(S3DataSourceConfiguration &&value)
void SetSharePointConfiguration(SharePointDataSourceConfiguration &&value)
DataSourceConfiguration & WithS3Configuration(const S3DataSourceConfiguration &value)
DataSourceConfiguration & WithType(const DataSourceType &value)
void SetConfluenceConfiguration(ConfluenceDataSourceConfiguration &&value)
DataSourceConfiguration & WithConfluenceConfiguration(const ConfluenceDataSourceConfiguration &value)
void SetSharePointConfiguration(const SharePointDataSourceConfiguration &value)
DataSourceConfiguration & WithWebConfiguration(const WebDataSourceConfiguration &value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetS3Configuration(const S3DataSourceConfiguration &value)
void SetConfluenceConfiguration(const ConfluenceDataSourceConfiguration &value)
AWS_BEDROCKAGENT_API DataSourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API DataSourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWebConfiguration(const WebDataSourceConfiguration &value)
DataSourceConfiguration & WithConfluenceConfiguration(ConfluenceDataSourceConfiguration &&value)
DataSourceConfiguration & WithType(DataSourceType &&value)
DataSourceConfiguration & WithSharePointConfiguration(SharePointDataSourceConfiguration &&value)
const SharePointDataSourceConfiguration & GetSharePointConfiguration() const
const S3DataSourceConfiguration & GetS3Configuration() const
const SalesforceDataSourceConfiguration & GetSalesforceConfiguration() const
void SetSalesforceConfiguration(SalesforceDataSourceConfiguration &&value)
void SetSalesforceConfiguration(const SalesforceDataSourceConfiguration &value)
DataSourceConfiguration & WithSharePointConfiguration(const SharePointDataSourceConfiguration &value)
const ConfluenceDataSourceConfiguration & GetConfluenceConfiguration() const
DataSourceConfiguration & WithSalesforceConfiguration(SalesforceDataSourceConfiguration &&value)
const WebDataSourceConfiguration & GetWebConfiguration() const
void SetWebConfiguration(WebDataSourceConfiguration &&value)
DataSourceConfiguration & WithWebConfiguration(WebDataSourceConfiguration &&value)
Aws::Utils::Json::JsonValue JsonValue