AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ExternalSourcesRetrieveAndGenerateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ExternalSourcesGenerationConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent-runtime/model/ExternalSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BEDROCKAGENTRUNTIME_API ExternalSourcesRetrieveAndGenerateConfiguration() = default;
41 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const ExternalSourcesGenerationConfiguration& GetGenerationConfiguration() const { return m_generationConfiguration; }
50 inline bool GenerationConfigurationHasBeenSet() const { return m_generationConfigurationHasBeenSet; }
51 template<typename GenerationConfigurationT = ExternalSourcesGenerationConfiguration>
52 void SetGenerationConfiguration(GenerationConfigurationT&& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = std::forward<GenerationConfigurationT>(value); }
53 template<typename GenerationConfigurationT = ExternalSourcesGenerationConfiguration>
54 ExternalSourcesRetrieveAndGenerateConfiguration& WithGenerationConfiguration(GenerationConfigurationT&& value) { SetGenerationConfiguration(std::forward<GenerationConfigurationT>(value)); return *this;}
56
58
62 inline const Aws::String& GetModelArn() const { return m_modelArn; }
63 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
64 template<typename ModelArnT = Aws::String>
65 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
66 template<typename ModelArnT = Aws::String>
67 ExternalSourcesRetrieveAndGenerateConfiguration& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
69
71
75 inline const Aws::Vector<ExternalSource>& GetSources() const { return m_sources; }
76 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
77 template<typename SourcesT = Aws::Vector<ExternalSource>>
78 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
79 template<typename SourcesT = Aws::Vector<ExternalSource>>
80 ExternalSourcesRetrieveAndGenerateConfiguration& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
81 template<typename SourcesT = ExternalSource>
82 ExternalSourcesRetrieveAndGenerateConfiguration& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
84 private:
85
86 ExternalSourcesGenerationConfiguration m_generationConfiguration;
87 bool m_generationConfigurationHasBeenSet = false;
88
89 Aws::String m_modelArn;
90 bool m_modelArnHasBeenSet = false;
91
93 bool m_sourcesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace BedrockAgentRuntime
98} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API ExternalSourcesRetrieveAndGenerateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ExternalSourcesRetrieveAndGenerateConfiguration & WithGenerationConfiguration(GenerationConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API ExternalSourcesRetrieveAndGenerateConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue