AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetGuardrailResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/GuardrailStatus.h>
10#include <aws/bedrock/model/GuardrailTopicPolicy.h>
11#include <aws/bedrock/model/GuardrailContentPolicy.h>
12#include <aws/bedrock/model/GuardrailWordPolicy.h>
13#include <aws/bedrock/model/GuardrailSensitiveInformationPolicy.h>
14#include <aws/bedrock/model/GuardrailContextualGroundingPolicy.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace Bedrock
32{
33namespace Model
34{
36 {
37 public:
38 AWS_BEDROCK_API GetGuardrailResult();
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline void SetName(const Aws::String& value) { m_name = value; }
49 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
50 inline void SetName(const char* value) { m_name.assign(value); }
51 inline GetGuardrailResult& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline GetGuardrailResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline GetGuardrailResult& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline void SetDescription(const Aws::String& value) { m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_description.assign(value); }
64 inline GetGuardrailResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline GetGuardrailResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline GetGuardrailResult& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const Aws::String& GetGuardrailId() const{ return m_guardrailId; }
74 inline void SetGuardrailId(const Aws::String& value) { m_guardrailId = value; }
75 inline void SetGuardrailId(Aws::String&& value) { m_guardrailId = std::move(value); }
76 inline void SetGuardrailId(const char* value) { m_guardrailId.assign(value); }
77 inline GetGuardrailResult& WithGuardrailId(const Aws::String& value) { SetGuardrailId(value); return *this;}
78 inline GetGuardrailResult& WithGuardrailId(Aws::String&& value) { SetGuardrailId(std::move(value)); return *this;}
79 inline GetGuardrailResult& WithGuardrailId(const char* value) { SetGuardrailId(value); return *this;}
81
83
86 inline const Aws::String& GetGuardrailArn() const{ return m_guardrailArn; }
87 inline void SetGuardrailArn(const Aws::String& value) { m_guardrailArn = value; }
88 inline void SetGuardrailArn(Aws::String&& value) { m_guardrailArn = std::move(value); }
89 inline void SetGuardrailArn(const char* value) { m_guardrailArn.assign(value); }
90 inline GetGuardrailResult& WithGuardrailArn(const Aws::String& value) { SetGuardrailArn(value); return *this;}
91 inline GetGuardrailResult& WithGuardrailArn(Aws::String&& value) { SetGuardrailArn(std::move(value)); return *this;}
92 inline GetGuardrailResult& WithGuardrailArn(const char* value) { SetGuardrailArn(value); return *this;}
94
96
99 inline const Aws::String& GetVersion() const{ return m_version; }
100 inline void SetVersion(const Aws::String& value) { m_version = value; }
101 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
102 inline void SetVersion(const char* value) { m_version.assign(value); }
103 inline GetGuardrailResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
104 inline GetGuardrailResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
105 inline GetGuardrailResult& WithVersion(const char* value) { SetVersion(value); return *this;}
107
109
112 inline const GuardrailStatus& GetStatus() const{ return m_status; }
113 inline void SetStatus(const GuardrailStatus& value) { m_status = value; }
114 inline void SetStatus(GuardrailStatus&& value) { m_status = std::move(value); }
115 inline GetGuardrailResult& WithStatus(const GuardrailStatus& value) { SetStatus(value); return *this;}
116 inline GetGuardrailResult& WithStatus(GuardrailStatus&& value) { SetStatus(std::move(value)); return *this;}
118
120
123 inline const GuardrailTopicPolicy& GetTopicPolicy() const{ return m_topicPolicy; }
124 inline void SetTopicPolicy(const GuardrailTopicPolicy& value) { m_topicPolicy = value; }
125 inline void SetTopicPolicy(GuardrailTopicPolicy&& value) { m_topicPolicy = std::move(value); }
126 inline GetGuardrailResult& WithTopicPolicy(const GuardrailTopicPolicy& value) { SetTopicPolicy(value); return *this;}
127 inline GetGuardrailResult& WithTopicPolicy(GuardrailTopicPolicy&& value) { SetTopicPolicy(std::move(value)); return *this;}
129
131
134 inline const GuardrailContentPolicy& GetContentPolicy() const{ return m_contentPolicy; }
135 inline void SetContentPolicy(const GuardrailContentPolicy& value) { m_contentPolicy = value; }
136 inline void SetContentPolicy(GuardrailContentPolicy&& value) { m_contentPolicy = std::move(value); }
138 inline GetGuardrailResult& WithContentPolicy(GuardrailContentPolicy&& value) { SetContentPolicy(std::move(value)); return *this;}
140
142
145 inline const GuardrailWordPolicy& GetWordPolicy() const{ return m_wordPolicy; }
146 inline void SetWordPolicy(const GuardrailWordPolicy& value) { m_wordPolicy = value; }
147 inline void SetWordPolicy(GuardrailWordPolicy&& value) { m_wordPolicy = std::move(value); }
148 inline GetGuardrailResult& WithWordPolicy(const GuardrailWordPolicy& value) { SetWordPolicy(value); return *this;}
149 inline GetGuardrailResult& WithWordPolicy(GuardrailWordPolicy&& value) { SetWordPolicy(std::move(value)); return *this;}
151
153
156 inline const GuardrailSensitiveInformationPolicy& GetSensitiveInformationPolicy() const{ return m_sensitiveInformationPolicy; }
157 inline void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicy& value) { m_sensitiveInformationPolicy = value; }
158 inline void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicy&& value) { m_sensitiveInformationPolicy = std::move(value); }
162
164
167 inline const GuardrailContextualGroundingPolicy& GetContextualGroundingPolicy() const{ return m_contextualGroundingPolicy; }
168 inline void SetContextualGroundingPolicy(const GuardrailContextualGroundingPolicy& value) { m_contextualGroundingPolicy = value; }
169 inline void SetContextualGroundingPolicy(GuardrailContextualGroundingPolicy&& value) { m_contextualGroundingPolicy = std::move(value); }
173
175
178 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
179 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
180 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
181 inline GetGuardrailResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
182 inline GetGuardrailResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
184
186
189 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
190 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
191 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
192 inline GetGuardrailResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
193 inline GetGuardrailResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
195
197
201 inline const Aws::Vector<Aws::String>& GetStatusReasons() const{ return m_statusReasons; }
202 inline void SetStatusReasons(const Aws::Vector<Aws::String>& value) { m_statusReasons = value; }
203 inline void SetStatusReasons(Aws::Vector<Aws::String>&& value) { m_statusReasons = std::move(value); }
205 inline GetGuardrailResult& WithStatusReasons(Aws::Vector<Aws::String>&& value) { SetStatusReasons(std::move(value)); return *this;}
206 inline GetGuardrailResult& AddStatusReasons(const Aws::String& value) { m_statusReasons.push_back(value); return *this; }
207 inline GetGuardrailResult& AddStatusReasons(Aws::String&& value) { m_statusReasons.push_back(std::move(value)); return *this; }
208 inline GetGuardrailResult& AddStatusReasons(const char* value) { m_statusReasons.push_back(value); return *this; }
210
212
216 inline const Aws::Vector<Aws::String>& GetFailureRecommendations() const{ return m_failureRecommendations; }
217 inline void SetFailureRecommendations(const Aws::Vector<Aws::String>& value) { m_failureRecommendations = value; }
218 inline void SetFailureRecommendations(Aws::Vector<Aws::String>&& value) { m_failureRecommendations = std::move(value); }
221 inline GetGuardrailResult& AddFailureRecommendations(const Aws::String& value) { m_failureRecommendations.push_back(value); return *this; }
222 inline GetGuardrailResult& AddFailureRecommendations(Aws::String&& value) { m_failureRecommendations.push_back(std::move(value)); return *this; }
223 inline GetGuardrailResult& AddFailureRecommendations(const char* value) { m_failureRecommendations.push_back(value); return *this; }
225
227
230 inline const Aws::String& GetBlockedInputMessaging() const{ return m_blockedInputMessaging; }
231 inline void SetBlockedInputMessaging(const Aws::String& value) { m_blockedInputMessaging = value; }
232 inline void SetBlockedInputMessaging(Aws::String&& value) { m_blockedInputMessaging = std::move(value); }
233 inline void SetBlockedInputMessaging(const char* value) { m_blockedInputMessaging.assign(value); }
235 inline GetGuardrailResult& WithBlockedInputMessaging(Aws::String&& value) { SetBlockedInputMessaging(std::move(value)); return *this;}
236 inline GetGuardrailResult& WithBlockedInputMessaging(const char* value) { SetBlockedInputMessaging(value); return *this;}
238
240
243 inline const Aws::String& GetBlockedOutputsMessaging() const{ return m_blockedOutputsMessaging; }
244 inline void SetBlockedOutputsMessaging(const Aws::String& value) { m_blockedOutputsMessaging = value; }
245 inline void SetBlockedOutputsMessaging(Aws::String&& value) { m_blockedOutputsMessaging = std::move(value); }
246 inline void SetBlockedOutputsMessaging(const char* value) { m_blockedOutputsMessaging.assign(value); }
249 inline GetGuardrailResult& WithBlockedOutputsMessaging(const char* value) { SetBlockedOutputsMessaging(value); return *this;}
251
253
256 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
257 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; }
258 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); }
259 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); }
260 inline GetGuardrailResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
261 inline GetGuardrailResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
262 inline GetGuardrailResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
264
266
267 inline const Aws::String& GetRequestId() const{ return m_requestId; }
268 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
269 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
270 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
271 inline GetGuardrailResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
272 inline GetGuardrailResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
273 inline GetGuardrailResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
275 private:
276
277 Aws::String m_name;
278
279 Aws::String m_description;
280
281 Aws::String m_guardrailId;
282
283 Aws::String m_guardrailArn;
284
285 Aws::String m_version;
286
287 GuardrailStatus m_status;
288
289 GuardrailTopicPolicy m_topicPolicy;
290
291 GuardrailContentPolicy m_contentPolicy;
292
293 GuardrailWordPolicy m_wordPolicy;
294
295 GuardrailSensitiveInformationPolicy m_sensitiveInformationPolicy;
296
297 GuardrailContextualGroundingPolicy m_contextualGroundingPolicy;
298
299 Aws::Utils::DateTime m_createdAt;
300
301 Aws::Utils::DateTime m_updatedAt;
302
303 Aws::Vector<Aws::String> m_statusReasons;
304
305 Aws::Vector<Aws::String> m_failureRecommendations;
306
307 Aws::String m_blockedInputMessaging;
308
309 Aws::String m_blockedOutputsMessaging;
310
311 Aws::String m_kmsKeyArn;
312
313 Aws::String m_requestId;
314 };
315
316} // namespace Model
317} // namespace Bedrock
318} // namespace Aws
void SetTopicPolicy(const GuardrailTopicPolicy &value)
GetGuardrailResult & WithDescription(Aws::String &&value)
GetGuardrailResult & WithBlockedInputMessaging(const Aws::String &value)
GetGuardrailResult & AddStatusReasons(Aws::String &&value)
GetGuardrailResult & WithVersion(const Aws::String &value)
GetGuardrailResult & AddFailureRecommendations(Aws::String &&value)
const Aws::Vector< Aws::String > & GetFailureRecommendations() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetStatus(const GuardrailStatus &value)
GetGuardrailResult & WithGuardrailId(Aws::String &&value)
void SetBlockedOutputsMessaging(Aws::String &&value)
const GuardrailContentPolicy & GetContentPolicy() const
void SetDescription(const Aws::String &value)
GetGuardrailResult & WithRequestId(const char *value)
void SetVersion(const Aws::String &value)
void SetStatusReasons(Aws::Vector< Aws::String > &&value)
GetGuardrailResult & WithStatus(const GuardrailStatus &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetGuardrailResult & WithWordPolicy(GuardrailWordPolicy &&value)
GetGuardrailResult & AddStatusReasons(const char *value)
void SetContextualGroundingPolicy(GuardrailContextualGroundingPolicy &&value)
void SetWordPolicy(GuardrailWordPolicy &&value)
GetGuardrailResult & WithGuardrailArn(const Aws::String &value)
GetGuardrailResult & WithVersion(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetGuardrailResult & WithCreatedAt(const Aws::Utils::DateTime &value)
GetGuardrailResult & WithStatus(GuardrailStatus &&value)
GetGuardrailResult & WithRequestId(const Aws::String &value)
GetGuardrailResult & AddStatusReasons(const Aws::String &value)
GetGuardrailResult & WithContextualGroundingPolicy(GuardrailContextualGroundingPolicy &&value)
GetGuardrailResult & WithContentPolicy(GuardrailContentPolicy &&value)
const GuardrailWordPolicy & GetWordPolicy() const
GetGuardrailResult & WithContentPolicy(const GuardrailContentPolicy &value)
GetGuardrailResult & WithBlockedInputMessaging(const char *value)
const Aws::String & GetGuardrailId() const
const GuardrailContextualGroundingPolicy & GetContextualGroundingPolicy() const
void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicy &&value)
const Aws::String & GetBlockedInputMessaging() const
const GuardrailSensitiveInformationPolicy & GetSensitiveInformationPolicy() const
void SetBlockedOutputsMessaging(const Aws::String &value)
GetGuardrailResult & WithBlockedOutputsMessaging(Aws::String &&value)
GetGuardrailResult & WithVersion(Aws::String &&value)
GetGuardrailResult & WithKmsKeyArn(const char *value)
GetGuardrailResult & WithWordPolicy(const GuardrailWordPolicy &value)
void SetRequestId(const Aws::String &value)
GetGuardrailResult & WithName(const char *value)
GetGuardrailResult & WithRequestId(Aws::String &&value)
void SetFailureRecommendations(Aws::Vector< Aws::String > &&value)
void SetKmsKeyArn(const Aws::String &value)
const GuardrailStatus & GetStatus() const
AWS_BEDROCK_API GetGuardrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetGuardrailResult & AddFailureRecommendations(const Aws::String &value)
GetGuardrailResult & WithName(Aws::String &&value)
GetGuardrailResult & WithFailureRecommendations(Aws::Vector< Aws::String > &&value)
GetGuardrailResult & WithTopicPolicy(const GuardrailTopicPolicy &value)
void SetName(const Aws::String &value)
GetGuardrailResult & WithBlockedOutputsMessaging(const char *value)
GetGuardrailResult & WithStatusReasons(Aws::Vector< Aws::String > &&value)
void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicy &value)
GetGuardrailResult & WithName(const Aws::String &value)
const Aws::String & GetBlockedOutputsMessaging() const
GetGuardrailResult & WithFailureRecommendations(const Aws::Vector< Aws::String > &value)
void SetBlockedInputMessaging(const Aws::String &value)
void SetWordPolicy(const GuardrailWordPolicy &value)
const Aws::String & GetDescription() const
void SetBlockedInputMessaging(Aws::String &&value)
GetGuardrailResult & WithGuardrailArn(const char *value)
GetGuardrailResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
GetGuardrailResult & WithKmsKeyArn(const Aws::String &value)
GetGuardrailResult & WithCreatedAt(Aws::Utils::DateTime &&value)
GetGuardrailResult & WithGuardrailId(const Aws::String &value)
AWS_BEDROCK_API GetGuardrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetGuardrailResult & WithDescription(const Aws::String &value)
void SetFailureRecommendations(const Aws::Vector< Aws::String > &value)
GetGuardrailResult & WithBlockedOutputsMessaging(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
GetGuardrailResult & WithTopicPolicy(GuardrailTopicPolicy &&value)
void SetContentPolicy(GuardrailContentPolicy &&value)
const Aws::String & GetGuardrailArn() const
GetGuardrailResult & WithKmsKeyArn(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetStatus(GuardrailStatus &&value)
void SetTopicPolicy(GuardrailTopicPolicy &&value)
GetGuardrailResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetBlockedOutputsMessaging(const char *value)
GetGuardrailResult & WithContextualGroundingPolicy(const GuardrailContextualGroundingPolicy &value)
void SetGuardrailId(const Aws::String &value)
const GuardrailTopicPolicy & GetTopicPolicy() const
void SetContentPolicy(const GuardrailContentPolicy &value)
GetGuardrailResult & WithDescription(const char *value)
GetGuardrailResult & WithSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicy &value)
GetGuardrailResult & WithGuardrailArn(Aws::String &&value)
GetGuardrailResult & AddFailureRecommendations(const char *value)
GetGuardrailResult & WithSensitiveInformationPolicy(GuardrailSensitiveInformationPolicy &&value)
GetGuardrailResult & WithBlockedInputMessaging(Aws::String &&value)
void SetStatusReasons(const Aws::Vector< Aws::String > &value)
void SetContextualGroundingPolicy(const GuardrailContextualGroundingPolicy &value)
GetGuardrailResult & WithStatusReasons(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetStatusReasons() const
GetGuardrailResult & WithGuardrailId(const char *value)
void SetGuardrailArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue