AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveGuardrailWarning.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailAction.h>
9#include <aws/core/utils/memory/stl/AWSString.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
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGuardrailWarning() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline GuardrailAction GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 inline void SetAction(GuardrailAction value) {
43 m_actionHasBeenSet = true;
44 m_action = value;
45 }
47 SetAction(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetId() const { return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 template <typename IdT = Aws::String>
59 void SetId(IdT&& value) {
60 m_idHasBeenSet = true;
61 m_id = std::forward<IdT>(value);
62 }
63 template <typename IdT = Aws::String>
65 SetId(std::forward<IdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMessage() const { return m_message; }
75 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 template <typename MessageT = Aws::String>
77 void SetMessage(MessageT&& value) {
78 m_messageHasBeenSet = true;
79 m_message = std::forward<MessageT>(value);
80 }
81 template <typename MessageT = Aws::String>
83 SetMessage(std::forward<MessageT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetVersion() const { return m_version; }
93 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
94 template <typename VersionT = Aws::String>
95 void SetVersion(VersionT&& value) {
96 m_versionHasBeenSet = true;
97 m_version = std::forward<VersionT>(value);
98 }
99 template <typename VersionT = Aws::String>
101 SetVersion(std::forward<VersionT>(value));
102 return *this;
103 }
105 private:
107
108 Aws::String m_id;
109
110 Aws::String m_message;
111
112 Aws::String m_version;
113 bool m_actionHasBeenSet = false;
114 bool m_idHasBeenSet = false;
115 bool m_messageHasBeenSet = false;
116 bool m_versionHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace BedrockAgentRuntime
121} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGuardrailWarning()=default
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGuardrailWarning(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveGuardrailWarning & operator=(Aws::Utils::Json::JsonView jsonValue)
AgenticRetrieveGuardrailWarning & WithAction(GuardrailAction value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue