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/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/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 BedrockAgent {
22namespace Model {
23
33 public:
34 AWS_BEDROCKAGENT_API PromptOverrideConfiguration() = default;
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::Vector<PromptConfiguration>& GetPromptConfigurations() const { return m_promptConfigurations; }
47 inline bool PromptConfigurationsHasBeenSet() const { return m_promptConfigurationsHasBeenSet; }
48 template <typename PromptConfigurationsT = Aws::Vector<PromptConfiguration>>
50 m_promptConfigurationsHasBeenSet = true;
51 m_promptConfigurations = std::forward<PromptConfigurationsT>(value);
52 }
53 template <typename PromptConfigurationsT = Aws::Vector<PromptConfiguration>>
55 SetPromptConfigurations(std::forward<PromptConfigurationsT>(value));
56 return *this;
57 }
58 template <typename PromptConfigurationsT = PromptConfiguration>
60 m_promptConfigurationsHasBeenSet = true;
61 m_promptConfigurations.emplace_back(std::forward<PromptConfigurationsT>(value));
62 return *this;
63 }
65
67
75 inline const Aws::String& GetOverrideLambda() const { return m_overrideLambda; }
76 inline bool OverrideLambdaHasBeenSet() const { return m_overrideLambdaHasBeenSet; }
77 template <typename OverrideLambdaT = Aws::String>
79 m_overrideLambdaHasBeenSet = true;
80 m_overrideLambda = std::forward<OverrideLambdaT>(value);
81 }
82 template <typename OverrideLambdaT = Aws::String>
84 SetOverrideLambda(std::forward<OverrideLambdaT>(value));
85 return *this;
86 }
88 private:
89 Aws::Vector<PromptConfiguration> m_promptConfigurations;
90
91 Aws::String m_overrideLambda;
92 bool m_promptConfigurationsHasBeenSet = false;
93 bool m_overrideLambdaHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace BedrockAgent
98} // namespace Aws
PromptOverrideConfiguration & AddPromptConfigurations(PromptConfigurationsT &&value)
AWS_BEDROCKAGENT_API PromptOverrideConfiguration()=default
AWS_BEDROCKAGENT_API PromptOverrideConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PromptConfiguration > & GetPromptConfigurations() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API PromptOverrideConfiguration(Aws::Utils::Json::JsonView jsonValue)
PromptOverrideConfiguration & WithOverrideLambda(OverrideLambdaT &&value)
PromptOverrideConfiguration & WithPromptConfigurations(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