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/bedrock/model/GuardrailCrossRegionDetails.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
22template<
typename RESULT_TYPE>
23class AmazonWebServiceResult;
49 template<
typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
51 template<
typename NameT = Aws::String>
60 template<
typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
62 template<
typename DescriptionT = Aws::String>
71 template<
typename GuardrailIdT = Aws::String>
72 void SetGuardrailId(GuardrailIdT&& value) { m_guardrailIdHasBeenSet =
true; m_guardrailId = std::forward<GuardrailIdT>(value); }
73 template<
typename GuardrailIdT = Aws::String>
82 template<
typename GuardrailArnT = Aws::String>
83 void SetGuardrailArn(GuardrailArnT&& value) { m_guardrailArnHasBeenSet =
true; m_guardrailArn = std::forward<GuardrailArnT>(value); }
84 template<
typename GuardrailArnT = Aws::String>
93 template<
typename VersionT = Aws::String>
94 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
95 template<
typename VersionT = Aws::String>
113 template<
typename TopicPolicyT = GuardrailTopicPolicy>
114 void SetTopicPolicy(TopicPolicyT&& value) { m_topicPolicyHasBeenSet =
true; m_topicPolicy = std::forward<TopicPolicyT>(value); }
115 template<
typename TopicPolicyT = GuardrailTopicPolicy>
124 template<
typename ContentPolicyT = GuardrailContentPolicy>
125 void SetContentPolicy(ContentPolicyT&& value) { m_contentPolicyHasBeenSet =
true; m_contentPolicy = std::forward<ContentPolicyT>(value); }
126 template<
typename ContentPolicyT = GuardrailContentPolicy>
135 template<
typename WordPolicyT = GuardrailWordPolicy>
136 void SetWordPolicy(WordPolicyT&& value) { m_wordPolicyHasBeenSet =
true; m_wordPolicy = std::forward<WordPolicyT>(value); }
137 template<
typename WordPolicyT = GuardrailWordPolicy>
146 template<
typename SensitiveInformationPolicyT = GuardrailSensitiveInformationPolicy>
147 void SetSensitiveInformationPolicy(SensitiveInformationPolicyT&& value) { m_sensitiveInformationPolicyHasBeenSet =
true; m_sensitiveInformationPolicy = std::forward<SensitiveInformationPolicyT>(value); }
148 template<
typename SensitiveInformationPolicyT = GuardrailSensitiveInformationPolicy>
157 template<
typename ContextualGroundingPolicyT = GuardrailContextualGroundingPolicy>
158 void SetContextualGroundingPolicy(ContextualGroundingPolicyT&& value) { m_contextualGroundingPolicyHasBeenSet =
true; m_contextualGroundingPolicy = std::forward<ContextualGroundingPolicyT>(value); }
159 template<
typename ContextualGroundingPolicyT = GuardrailContextualGroundingPolicy>
170 template<
typename CrossRegionDetailsT = GuardrailCrossRegionDetails>
171 void SetCrossRegionDetails(CrossRegionDetailsT&& value) { m_crossRegionDetailsHasBeenSet =
true; m_crossRegionDetails = std::forward<CrossRegionDetailsT>(value); }
172 template<
typename CrossRegionDetailsT = GuardrailCrossRegionDetails>
181 template<
typename CreatedAtT = Aws::Utils::DateTime>
182 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
183 template<
typename CreatedAtT = Aws::Utils::DateTime>
192 template<
typename UpdatedAtT = Aws::Utils::DateTime>
193 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
194 template<
typename UpdatedAtT = Aws::Utils::DateTime>
204 template<
typename StatusReasonsT = Aws::Vector<Aws::String>>
205 void SetStatusReasons(StatusReasonsT&& value) { m_statusReasonsHasBeenSet =
true; m_statusReasons = std::forward<StatusReasonsT>(value); }
206 template<
typename StatusReasonsT = Aws::Vector<Aws::String>>
208 template<
typename StatusReasonsT = Aws::String>
218 template<
typename FailureRecommendationsT = Aws::Vector<Aws::String>>
219 void SetFailureRecommendations(FailureRecommendationsT&& value) { m_failureRecommendationsHasBeenSet =
true; m_failureRecommendations = std::forward<FailureRecommendationsT>(value); }
220 template<
typename FailureRecommendationsT = Aws::Vector<Aws::String>>
222 template<
typename FailureRecommendationsT = Aws::String>
231 template<
typename BlockedInputMessagingT = Aws::String>
232 void SetBlockedInputMessaging(BlockedInputMessagingT&& value) { m_blockedInputMessagingHasBeenSet =
true; m_blockedInputMessaging = std::forward<BlockedInputMessagingT>(value); }
233 template<
typename BlockedInputMessagingT = Aws::String>
242 template<
typename BlockedOutputsMessagingT = Aws::String>
243 void SetBlockedOutputsMessaging(BlockedOutputsMessagingT&& value) { m_blockedOutputsMessagingHasBeenSet =
true; m_blockedOutputsMessaging = std::forward<BlockedOutputsMessagingT>(value); }
244 template<
typename BlockedOutputsMessagingT = Aws::String>
253 template<
typename KmsKeyArnT = Aws::String>
254 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet =
true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
255 template<
typename KmsKeyArnT = Aws::String>
262 template<
typename RequestIdT = Aws::String>
263 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
264 template<
typename RequestIdT = Aws::String>
270 bool m_nameHasBeenSet =
false;
273 bool m_descriptionHasBeenSet =
false;
276 bool m_guardrailIdHasBeenSet =
false;
279 bool m_guardrailArnHasBeenSet =
false;
282 bool m_versionHasBeenSet =
false;
285 bool m_statusHasBeenSet =
false;
287 GuardrailTopicPolicy m_topicPolicy;
288 bool m_topicPolicyHasBeenSet =
false;
290 GuardrailContentPolicy m_contentPolicy;
291 bool m_contentPolicyHasBeenSet =
false;
293 GuardrailWordPolicy m_wordPolicy;
294 bool m_wordPolicyHasBeenSet =
false;
296 GuardrailSensitiveInformationPolicy m_sensitiveInformationPolicy;
297 bool m_sensitiveInformationPolicyHasBeenSet =
false;
299 GuardrailContextualGroundingPolicy m_contextualGroundingPolicy;
300 bool m_contextualGroundingPolicyHasBeenSet =
false;
302 GuardrailCrossRegionDetails m_crossRegionDetails;
303 bool m_crossRegionDetailsHasBeenSet =
false;
306 bool m_createdAtHasBeenSet =
false;
309 bool m_updatedAtHasBeenSet =
false;
312 bool m_statusReasonsHasBeenSet =
false;
315 bool m_failureRecommendationsHasBeenSet =
false;
318 bool m_blockedInputMessagingHasBeenSet =
false;
321 bool m_blockedOutputsMessagingHasBeenSet =
false;
324 bool m_kmsKeyArnHasBeenSet =
false;
327 bool m_requestIdHasBeenSet =
false;
void SetKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetRequestId() const
GetGuardrailResult & WithTopicPolicy(TopicPolicyT &&value)
AWS_BEDROCK_API GetGuardrailResult()=default
GetGuardrailResult & AddStatusReasons(StatusReasonsT &&value)
const Aws::Vector< Aws::String > & GetFailureRecommendations() const
void SetContentPolicy(ContentPolicyT &&value)
void SetBlockedInputMessaging(BlockedInputMessagingT &&value)
const Aws::String & GetName() const
GetGuardrailResult & WithStatus(GuardrailStatus value)
GuardrailStatus GetStatus() const
GetGuardrailResult & AddFailureRecommendations(FailureRecommendationsT &&value)
const GuardrailContentPolicy & GetContentPolicy() const
const Aws::Utils::DateTime & GetUpdatedAt() const
GetGuardrailResult & WithVersion(VersionT &&value)
GetGuardrailResult & WithCrossRegionDetails(CrossRegionDetailsT &&value)
void SetTopicPolicy(TopicPolicyT &&value)
GetGuardrailResult & WithStatusReasons(StatusReasonsT &&value)
void SetSensitiveInformationPolicy(SensitiveInformationPolicyT &&value)
GetGuardrailResult & WithSensitiveInformationPolicy(SensitiveInformationPolicyT &&value)
const GuardrailWordPolicy & GetWordPolicy() const
void SetName(NameT &&value)
GetGuardrailResult & WithGuardrailArn(GuardrailArnT &&value)
const Aws::String & GetGuardrailId() const
const GuardrailContextualGroundingPolicy & GetContextualGroundingPolicy() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetBlockedInputMessaging() const
const GuardrailSensitiveInformationPolicy & GetSensitiveInformationPolicy() const
GetGuardrailResult & WithBlockedInputMessaging(BlockedInputMessagingT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
GetGuardrailResult & WithGuardrailId(GuardrailIdT &&value)
const Aws::String & GetVersion() const
GetGuardrailResult & WithContextualGroundingPolicy(ContextualGroundingPolicyT &&value)
GetGuardrailResult & WithFailureRecommendations(FailureRecommendationsT &&value)
void SetVersion(VersionT &&value)
AWS_BEDROCK_API GetGuardrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
void SetContextualGroundingPolicy(ContextualGroundingPolicyT &&value)
GetGuardrailResult & WithWordPolicy(WordPolicyT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetBlockedOutputsMessaging() const
const Aws::String & GetDescription() const
GetGuardrailResult & WithBlockedOutputsMessaging(BlockedOutputsMessagingT &&value)
void SetStatus(GuardrailStatus value)
AWS_BEDROCK_API GetGuardrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetWordPolicy(WordPolicyT &&value)
void SetGuardrailArn(GuardrailArnT &&value)
GetGuardrailResult & WithKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetGuardrailArn() const
void SetGuardrailId(GuardrailIdT &&value)
void SetStatusReasons(StatusReasonsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetGuardrailResult & WithUpdatedAt(UpdatedAtT &&value)
void SetBlockedOutputsMessaging(BlockedOutputsMessagingT &&value)
const GuardrailCrossRegionDetails & GetCrossRegionDetails() const
const GuardrailTopicPolicy & GetTopicPolicy() const
const Aws::String & GetKmsKeyArn() const
void SetCrossRegionDetails(CrossRegionDetailsT &&value)
GetGuardrailResult & WithDescription(DescriptionT &&value)
GetGuardrailResult & WithContentPolicy(ContentPolicyT &&value)
GetGuardrailResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< Aws::String > & GetStatusReasons() const
GetGuardrailResult & WithName(NameT &&value)
void SetFailureRecommendations(FailureRecommendationsT &&value)
GetGuardrailResult & WithRequestId(RequestIdT &&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