AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
WebDataSourceConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/WebCrawlerConfiguration.h>
9#include <aws/bedrock-agent/model/WebSourceConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENT_API WebDataSourceConfiguration() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const WebSourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
41 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
42 template <typename SourceConfigurationT = WebSourceConfiguration>
44 m_sourceConfigurationHasBeenSet = true;
45 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
46 }
47 template <typename SourceConfigurationT = WebSourceConfiguration>
49 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
50 return *this;
51 }
53
55
58 inline const WebCrawlerConfiguration& GetCrawlerConfiguration() const { return m_crawlerConfiguration; }
59 inline bool CrawlerConfigurationHasBeenSet() const { return m_crawlerConfigurationHasBeenSet; }
60 template <typename CrawlerConfigurationT = WebCrawlerConfiguration>
62 m_crawlerConfigurationHasBeenSet = true;
63 m_crawlerConfiguration = std::forward<CrawlerConfigurationT>(value);
64 }
65 template <typename CrawlerConfigurationT = WebCrawlerConfiguration>
67 SetCrawlerConfiguration(std::forward<CrawlerConfigurationT>(value));
68 return *this;
69 }
71 private:
72 WebSourceConfiguration m_sourceConfiguration;
73
74 WebCrawlerConfiguration m_crawlerConfiguration;
75 bool m_sourceConfigurationHasBeenSet = false;
76 bool m_crawlerConfigurationHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockAgent
81} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const WebSourceConfiguration & GetSourceConfiguration() const
AWS_BEDROCKAGENT_API WebDataSourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
WebDataSourceConfiguration & WithSourceConfiguration(SourceConfigurationT &&value)
AWS_BEDROCKAGENT_API WebDataSourceConfiguration()=default
WebDataSourceConfiguration & WithCrawlerConfiguration(CrawlerConfigurationT &&value)
const WebCrawlerConfiguration & GetCrawlerConfiguration() const
AWS_BEDROCKAGENT_API WebDataSourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue