AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveWarning.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveGuardrailWarning.h>
9#include <aws/bedrock-agent-runtime/model/AgenticRetrieveWarningMessage.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveWarning() = default;
33 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const AgenticRetrieveGuardrailWarning& GetGuardrail() const { return m_guardrail; }
40 inline bool GuardrailHasBeenSet() const { return m_guardrailHasBeenSet; }
41 template <typename GuardrailT = AgenticRetrieveGuardrailWarning>
42 void SetGuardrail(GuardrailT&& value) {
43 m_guardrailHasBeenSet = true;
44 m_guardrail = std::forward<GuardrailT>(value);
45 }
46 template <typename GuardrailT = AgenticRetrieveGuardrailWarning>
48 SetGuardrail(std::forward<GuardrailT>(value));
49 return *this;
50 }
52
54
57 inline const AgenticRetrieveWarningMessage& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = AgenticRetrieveWarningMessage>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = AgenticRetrieveWarningMessage>
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70 private:
72
74 bool m_guardrailHasBeenSet = false;
75 bool m_messageHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace BedrockAgentRuntime
80} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const AgenticRetrieveWarningMessage & GetMessage() const
const AgenticRetrieveGuardrailWarning & GetGuardrail() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveWarning & operator=(Aws::Utils::Json::JsonView jsonValue)
AgenticRetrieveWarning & WithGuardrail(GuardrailT &&value)
AgenticRetrieveWarning & WithMessage(MessageT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveWarning(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveWarning()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue