AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PromptFlowNodeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
9#include <aws/bedrock-agent/model/PromptFlowNodeSourceConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
36 public:
37 AWS_BEDROCKAGENT_API PromptFlowNodeConfiguration() = default;
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const PromptFlowNodeSourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
47 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
48 template <typename SourceConfigurationT = PromptFlowNodeSourceConfiguration>
50 m_sourceConfigurationHasBeenSet = true;
51 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
52 }
53 template <typename SourceConfigurationT = PromptFlowNodeSourceConfiguration>
55 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
56 return *this;
57 }
59
61
65 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
66 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
67 template <typename GuardrailConfigurationT = GuardrailConfiguration>
69 m_guardrailConfigurationHasBeenSet = true;
70 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
71 }
72 template <typename GuardrailConfigurationT = GuardrailConfiguration>
74 SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value));
75 return *this;
76 }
78 private:
79 PromptFlowNodeSourceConfiguration m_sourceConfiguration;
80
81 GuardrailConfiguration m_guardrailConfiguration;
82 bool m_sourceConfigurationHasBeenSet = false;
83 bool m_guardrailConfigurationHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace BedrockAgent
88} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const GuardrailConfiguration & GetGuardrailConfiguration() const
PromptFlowNodeConfiguration & WithSourceConfiguration(SourceConfigurationT &&value)
AWS_BEDROCKAGENT_API PromptFlowNodeConfiguration()=default
PromptFlowNodeConfiguration & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
AWS_BEDROCKAGENT_API PromptFlowNodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
const PromptFlowNodeSourceConfiguration & GetSourceConfiguration() const
AWS_BEDROCKAGENT_API PromptFlowNodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue