AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
AutomatedReasoningPolicyBuildStep.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/AutomatedReasoningPolicyBuildStepContext.h>
9#include <aws/bedrock/model/AutomatedReasoningPolicyBuildStepMessage.h>
10#include <aws/bedrock/model/AutomatedReasoningPolicyDefinitionElement.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Bedrock {
23namespace Model {
24
33 public:
34 AWS_BEDROCK_API AutomatedReasoningPolicyBuildStep() = default;
37 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const AutomatedReasoningPolicyBuildStepContext& GetContext() const { return m_context; }
45 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
46 template <typename ContextT = AutomatedReasoningPolicyBuildStepContext>
47 void SetContext(ContextT&& value) {
48 m_contextHasBeenSet = true;
49 m_context = std::forward<ContextT>(value);
50 }
51 template <typename ContextT = AutomatedReasoningPolicyBuildStepContext>
53 SetContext(std::forward<ContextT>(value));
54 return *this;
55 }
57
59
63 inline const AutomatedReasoningPolicyDefinitionElement& GetPriorElement() const { return m_priorElement; }
64 inline bool PriorElementHasBeenSet() const { return m_priorElementHasBeenSet; }
65 template <typename PriorElementT = AutomatedReasoningPolicyDefinitionElement>
67 m_priorElementHasBeenSet = true;
68 m_priorElement = std::forward<PriorElementT>(value);
69 }
70 template <typename PriorElementT = AutomatedReasoningPolicyDefinitionElement>
72 SetPriorElement(std::forward<PriorElementT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::Vector<AutomatedReasoningPolicyBuildStepMessage>& GetMessages() const { return m_messages; }
83 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
84 template <typename MessagesT = Aws::Vector<AutomatedReasoningPolicyBuildStepMessage>>
85 void SetMessages(MessagesT&& value) {
86 m_messagesHasBeenSet = true;
87 m_messages = std::forward<MessagesT>(value);
88 }
89 template <typename MessagesT = Aws::Vector<AutomatedReasoningPolicyBuildStepMessage>>
91 SetMessages(std::forward<MessagesT>(value));
92 return *this;
93 }
94 template <typename MessagesT = AutomatedReasoningPolicyBuildStepMessage>
96 m_messagesHasBeenSet = true;
97 m_messages.emplace_back(std::forward<MessagesT>(value));
98 return *this;
99 }
101 private:
103
105
107 bool m_contextHasBeenSet = false;
108 bool m_priorElementHasBeenSet = false;
109 bool m_messagesHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Bedrock
114} // namespace Aws
AutomatedReasoningPolicyBuildStep & WithMessages(MessagesT &&value)
const AutomatedReasoningPolicyDefinitionElement & GetPriorElement() const
AWS_BEDROCK_API AutomatedReasoningPolicyBuildStep(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AutomatedReasoningPolicyBuildStepMessage > & GetMessages() const
AutomatedReasoningPolicyBuildStep & WithPriorElement(PriorElementT &&value)
AutomatedReasoningPolicyBuildStep & WithContext(ContextT &&value)
const AutomatedReasoningPolicyBuildStepContext & GetContext() const
AWS_BEDROCK_API AutomatedReasoningPolicyBuildStep & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
AutomatedReasoningPolicyBuildStep & AddMessages(MessagesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue