AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PromptOverrideConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/PromptConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
33 public:
34 AWS_BEDROCKAGENTRUNTIME_API PromptOverrideConfiguration() = default;
37 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
48 inline const Aws::String& GetOverrideLambda() const { return m_overrideLambda; }
49 inline bool OverrideLambdaHasBeenSet() const { return m_overrideLambdaHasBeenSet; }
50 template <typename OverrideLambdaT = Aws::String>
52 m_overrideLambdaHasBeenSet = true;
53 m_overrideLambda = std::forward<OverrideLambdaT>(value);
54 }
55 template <typename OverrideLambdaT = Aws::String>
57 SetOverrideLambda(std::forward<OverrideLambdaT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::Vector<PromptConfiguration>& GetPromptConfigurations() const { return m_promptConfigurations; }
70 inline bool PromptConfigurationsHasBeenSet() const { return m_promptConfigurationsHasBeenSet; }
71 template <typename PromptConfigurationsT = Aws::Vector<PromptConfiguration>>
73 m_promptConfigurationsHasBeenSet = true;
74 m_promptConfigurations = std::forward<PromptConfigurationsT>(value);
75 }
76 template <typename PromptConfigurationsT = Aws::Vector<PromptConfiguration>>
78 SetPromptConfigurations(std::forward<PromptConfigurationsT>(value));
79 return *this;
80 }
81 template <typename PromptConfigurationsT = PromptConfiguration>
83 m_promptConfigurationsHasBeenSet = true;
84 m_promptConfigurations.emplace_back(std::forward<PromptConfigurationsT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_overrideLambda;
90
91 Aws::Vector<PromptConfiguration> m_promptConfigurations;
92 bool m_overrideLambdaHasBeenSet = false;
93 bool m_promptConfigurationsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace BedrockAgentRuntime
98} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
PromptOverrideConfiguration & WithOverrideLambda(OverrideLambdaT &&value)
AWS_BEDROCKAGENTRUNTIME_API PromptOverrideConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API PromptOverrideConfiguration()=default
PromptOverrideConfiguration & WithPromptConfigurations(PromptConfigurationsT &&value)
AWS_BEDROCKAGENTRUNTIME_API PromptOverrideConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PromptConfiguration > & GetPromptConfigurations() const
PromptOverrideConfiguration & AddPromptConfigurations(PromptConfigurationsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue