AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ExternalSourcesRetrieveAndGenerateConfiguration.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock/model/ExternalSourcesGenerationConfiguration.h>
11#include <aws/bedrock/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 Bedrock
25{
26namespace Model
27{
28
36 {
37 public:
41 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetModelArn() const { return m_modelArn; }
51 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
52 template<typename ModelArnT = Aws::String>
53 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
54 template<typename ModelArnT = Aws::String>
55 ExternalSourcesRetrieveAndGenerateConfiguration& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
57
59
63 inline const Aws::Vector<ExternalSource>& GetSources() const { return m_sources; }
64 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
65 template<typename SourcesT = Aws::Vector<ExternalSource>>
66 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
67 template<typename SourcesT = Aws::Vector<ExternalSource>>
68 ExternalSourcesRetrieveAndGenerateConfiguration& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
69 template<typename SourcesT = ExternalSource>
70 ExternalSourcesRetrieveAndGenerateConfiguration& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
72
74
78 inline const ExternalSourcesGenerationConfiguration& GetGenerationConfiguration() const { return m_generationConfiguration; }
79 inline bool GenerationConfigurationHasBeenSet() const { return m_generationConfigurationHasBeenSet; }
80 template<typename GenerationConfigurationT = ExternalSourcesGenerationConfiguration>
81 void SetGenerationConfiguration(GenerationConfigurationT&& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = std::forward<GenerationConfigurationT>(value); }
82 template<typename GenerationConfigurationT = ExternalSourcesGenerationConfiguration>
83 ExternalSourcesRetrieveAndGenerateConfiguration& WithGenerationConfiguration(GenerationConfigurationT&& value) { SetGenerationConfiguration(std::forward<GenerationConfigurationT>(value)); return *this;}
85 private:
86
87 Aws::String m_modelArn;
88 bool m_modelArnHasBeenSet = false;
89
91 bool m_sourcesHasBeenSet = false;
92
93 ExternalSourcesGenerationConfiguration m_generationConfiguration;
94 bool m_generationConfigurationHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Bedrock
99} // namespace Aws
AWS_BEDROCK_API ExternalSourcesRetrieveAndGenerateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ExternalSourcesRetrieveAndGenerateConfiguration & WithModelArn(ModelArnT &&value)
AWS_BEDROCK_API ExternalSourcesRetrieveAndGenerateConfiguration(Aws::Utils::Json::JsonView jsonValue)
ExternalSourcesRetrieveAndGenerateConfiguration & WithGenerationConfiguration(GenerationConfigurationT &&value)
ExternalSourcesRetrieveAndGenerateConfiguration & WithSources(SourcesT &&value)
ExternalSourcesRetrieveAndGenerateConfiguration & AddSources(SourcesT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue