AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetGenerationConfiguration(const ExternalSourcesGenerationConfiguration& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = value; }
52 inline void SetGenerationConfiguration(ExternalSourcesGenerationConfiguration&& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = std::move(value); }
56
58
62 inline const Aws::String& GetModelArn() const{ return m_modelArn; }
63 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
64 inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
65 inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
66 inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
68 inline ExternalSourcesRetrieveAndGenerateConfiguration& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
69 inline ExternalSourcesRetrieveAndGenerateConfiguration& WithModelArn(const char* value) { SetModelArn(value); return *this;}
71
73
77 inline const Aws::Vector<ExternalSource>& GetSources() const{ return m_sources; }
78 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
79 inline void SetSources(const Aws::Vector<ExternalSource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
80 inline void SetSources(Aws::Vector<ExternalSource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
83 inline ExternalSourcesRetrieveAndGenerateConfiguration& AddSources(const ExternalSource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
84 inline ExternalSourcesRetrieveAndGenerateConfiguration& AddSources(ExternalSource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
86 private:
87
88 ExternalSourcesGenerationConfiguration m_generationConfiguration;
89 bool m_generationConfigurationHasBeenSet = false;
90
91 Aws::String m_modelArn;
92 bool m_modelArnHasBeenSet = false;
93
95 bool m_sourcesHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace BedrockAgentRuntime
100} // namespace Aws
ExternalSourcesRetrieveAndGenerateConfiguration & WithModelArn(const Aws::String &value)
ExternalSourcesRetrieveAndGenerateConfiguration & AddSources(const ExternalSource &value)
ExternalSourcesRetrieveAndGenerateConfiguration & WithGenerationConfiguration(ExternalSourcesGenerationConfiguration &&value)
ExternalSourcesRetrieveAndGenerateConfiguration & WithGenerationConfiguration(const ExternalSourcesGenerationConfiguration &value)
ExternalSourcesRetrieveAndGenerateConfiguration & WithSources(Aws::Vector< ExternalSource > &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API ExternalSourcesRetrieveAndGenerateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ExternalSourcesRetrieveAndGenerateConfiguration & WithSources(const Aws::Vector< ExternalSource > &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