AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PromptFlowNodeInlineConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
9#include <aws/bedrock-agent/model/PromptTemplateConfiguration.h>
10#include <aws/bedrock-agent/model/PromptTemplateType.h>
11#include <aws/core/utils/Document.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent {
24namespace Model {
25
33 public:
34 AWS_BEDROCKAGENT_API PromptFlowNodeInlineConfiguration() = default;
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline PromptTemplateType GetTemplateType() const { return m_templateType; }
44 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
46 m_templateTypeHasBeenSet = true;
47 m_templateType = value;
48 }
50 SetTemplateType(value);
51 return *this;
52 }
54
56
60 inline const PromptTemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
61 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
62 template <typename TemplateConfigurationT = PromptTemplateConfiguration>
64 m_templateConfigurationHasBeenSet = true;
65 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
66 }
67 template <typename TemplateConfigurationT = PromptTemplateConfiguration>
69 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetModelId() const { return m_modelId; }
81 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
82 template <typename ModelIdT = Aws::String>
83 void SetModelId(ModelIdT&& value) {
84 m_modelIdHasBeenSet = true;
85 m_modelId = std::forward<ModelIdT>(value);
86 }
87 template <typename ModelIdT = Aws::String>
89 SetModelId(std::forward<ModelIdT>(value));
90 return *this;
91 }
93
95
98 inline const PromptInferenceConfiguration& GetInferenceConfiguration() const { return m_inferenceConfiguration; }
99 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
100 template <typename InferenceConfigurationT = PromptInferenceConfiguration>
102 m_inferenceConfigurationHasBeenSet = true;
103 m_inferenceConfiguration = std::forward<InferenceConfigurationT>(value);
104 }
105 template <typename InferenceConfigurationT = PromptInferenceConfiguration>
107 SetInferenceConfiguration(std::forward<InferenceConfigurationT>(value));
108 return *this;
109 }
111
113
117 inline Aws::Utils::DocumentView GetAdditionalModelRequestFields() const { return m_additionalModelRequestFields; }
118 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
119 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
121 m_additionalModelRequestFieldsHasBeenSet = true;
122 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
123 }
124 template <typename AdditionalModelRequestFieldsT = Aws::Utils::Document>
126 SetAdditionalModelRequestFields(std::forward<AdditionalModelRequestFieldsT>(value));
127 return *this;
128 }
130 private:
132
133 PromptTemplateConfiguration m_templateConfiguration;
134
135 Aws::String m_modelId;
136
137 PromptInferenceConfiguration m_inferenceConfiguration;
138
139 Aws::Utils::Document m_additionalModelRequestFields;
140 bool m_templateTypeHasBeenSet = false;
141 bool m_templateConfigurationHasBeenSet = false;
142 bool m_modelIdHasBeenSet = false;
143 bool m_inferenceConfigurationHasBeenSet = false;
144 bool m_additionalModelRequestFieldsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace BedrockAgent
149} // namespace Aws
AWS_BEDROCKAGENT_API PromptFlowNodeInlineConfiguration(Aws::Utils::Json::JsonView jsonValue)
PromptFlowNodeInlineConfiguration & WithTemplateType(PromptTemplateType value)
PromptFlowNodeInlineConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API PromptFlowNodeInlineConfiguration()=default
AWS_BEDROCKAGENT_API PromptFlowNodeInlineConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
PromptFlowNodeInlineConfiguration & WithModelId(ModelIdT &&value)
PromptFlowNodeInlineConfiguration & WithTemplateConfiguration(TemplateConfigurationT &&value)
PromptFlowNodeInlineConfiguration & WithInferenceConfiguration(InferenceConfigurationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue