AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
QnAIntentConfiguration.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/BedrockModelSpecification.h>
9#include <aws/lexv2-models/model/DataSourceConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API QnAIntentConfiguration() = default;
32 AWS_LEXMODELSV2_API QnAIntentConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
42 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
43 template <typename DataSourceConfigurationT = DataSourceConfiguration>
44 void SetDataSourceConfiguration(DataSourceConfigurationT&& value) {
45 m_dataSourceConfigurationHasBeenSet = true;
46 m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value);
47 }
48 template <typename DataSourceConfigurationT = DataSourceConfiguration>
49 QnAIntentConfiguration& WithDataSourceConfiguration(DataSourceConfigurationT&& value) {
50 SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value));
51 return *this;
52 }
54
56
57 inline const BedrockModelSpecification& GetBedrockModelConfiguration() const { return m_bedrockModelConfiguration; }
58 inline bool BedrockModelConfigurationHasBeenSet() const { return m_bedrockModelConfigurationHasBeenSet; }
59 template <typename BedrockModelConfigurationT = BedrockModelSpecification>
60 void SetBedrockModelConfiguration(BedrockModelConfigurationT&& value) {
61 m_bedrockModelConfigurationHasBeenSet = true;
62 m_bedrockModelConfiguration = std::forward<BedrockModelConfigurationT>(value);
63 }
64 template <typename BedrockModelConfigurationT = BedrockModelSpecification>
65 QnAIntentConfiguration& WithBedrockModelConfiguration(BedrockModelConfigurationT&& value) {
66 SetBedrockModelConfiguration(std::forward<BedrockModelConfigurationT>(value));
67 return *this;
68 }
70 private:
71 DataSourceConfiguration m_dataSourceConfiguration;
72
73 BedrockModelSpecification m_bedrockModelConfiguration;
74 bool m_dataSourceConfigurationHasBeenSet = false;
75 bool m_bedrockModelConfigurationHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace LexModelsV2
80} // namespace Aws
AWS_LEXMODELSV2_API QnAIntentConfiguration(Aws::Utils::Json::JsonView jsonValue)
QnAIntentConfiguration & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
AWS_LEXMODELSV2_API QnAIntentConfiguration()=default
void SetBedrockModelConfiguration(BedrockModelConfigurationT &&value)
const BedrockModelSpecification & GetBedrockModelConfiguration() const
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const DataSourceConfiguration & GetDataSourceConfiguration() const
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
AWS_LEXMODELSV2_API QnAIntentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
QnAIntentConfiguration & WithBedrockModelConfiguration(BedrockModelConfigurationT &&value)
Aws::Utils::Json::JsonValue JsonValue