AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGuardrailRequest.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/BedrockRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock/model/GuardrailTopicPolicyConfig.h>
11#include <aws/bedrock/model/GuardrailContentPolicyConfig.h>
12#include <aws/bedrock/model/GuardrailWordPolicyConfig.h>
13#include <aws/bedrock/model/GuardrailSensitiveInformationPolicyConfig.h>
14#include <aws/bedrock/model/GuardrailContextualGroundingPolicyConfig.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/bedrock/model/Tag.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace Bedrock
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_BEDROCK_API CreateGuardrailRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateGuardrail"; }
39
40 AWS_BEDROCK_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateGuardrailRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateGuardrailRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateGuardrailRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline CreateGuardrailRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline CreateGuardrailRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateGuardrailRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const GuardrailTopicPolicyConfig& GetTopicPolicyConfig() const{ return m_topicPolicyConfig; }
76 inline bool TopicPolicyConfigHasBeenSet() const { return m_topicPolicyConfigHasBeenSet; }
77 inline void SetTopicPolicyConfig(const GuardrailTopicPolicyConfig& value) { m_topicPolicyConfigHasBeenSet = true; m_topicPolicyConfig = value; }
78 inline void SetTopicPolicyConfig(GuardrailTopicPolicyConfig&& value) { m_topicPolicyConfigHasBeenSet = true; m_topicPolicyConfig = std::move(value); }
82
84
87 inline const GuardrailContentPolicyConfig& GetContentPolicyConfig() const{ return m_contentPolicyConfig; }
88 inline bool ContentPolicyConfigHasBeenSet() const { return m_contentPolicyConfigHasBeenSet; }
89 inline void SetContentPolicyConfig(const GuardrailContentPolicyConfig& value) { m_contentPolicyConfigHasBeenSet = true; m_contentPolicyConfig = value; }
90 inline void SetContentPolicyConfig(GuardrailContentPolicyConfig&& value) { m_contentPolicyConfigHasBeenSet = true; m_contentPolicyConfig = std::move(value); }
94
96
99 inline const GuardrailWordPolicyConfig& GetWordPolicyConfig() const{ return m_wordPolicyConfig; }
100 inline bool WordPolicyConfigHasBeenSet() const { return m_wordPolicyConfigHasBeenSet; }
101 inline void SetWordPolicyConfig(const GuardrailWordPolicyConfig& value) { m_wordPolicyConfigHasBeenSet = true; m_wordPolicyConfig = value; }
102 inline void SetWordPolicyConfig(GuardrailWordPolicyConfig&& value) { m_wordPolicyConfigHasBeenSet = true; m_wordPolicyConfig = std::move(value); }
106
108
111 inline const GuardrailSensitiveInformationPolicyConfig& GetSensitiveInformationPolicyConfig() const{ return m_sensitiveInformationPolicyConfig; }
112 inline bool SensitiveInformationPolicyConfigHasBeenSet() const { return m_sensitiveInformationPolicyConfigHasBeenSet; }
113 inline void SetSensitiveInformationPolicyConfig(const GuardrailSensitiveInformationPolicyConfig& value) { m_sensitiveInformationPolicyConfigHasBeenSet = true; m_sensitiveInformationPolicyConfig = value; }
114 inline void SetSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig&& value) { m_sensitiveInformationPolicyConfigHasBeenSet = true; m_sensitiveInformationPolicyConfig = std::move(value); }
118
120
123 inline const GuardrailContextualGroundingPolicyConfig& GetContextualGroundingPolicyConfig() const{ return m_contextualGroundingPolicyConfig; }
124 inline bool ContextualGroundingPolicyConfigHasBeenSet() const { return m_contextualGroundingPolicyConfigHasBeenSet; }
125 inline void SetContextualGroundingPolicyConfig(const GuardrailContextualGroundingPolicyConfig& value) { m_contextualGroundingPolicyConfigHasBeenSet = true; m_contextualGroundingPolicyConfig = value; }
126 inline void SetContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig&& value) { m_contextualGroundingPolicyConfigHasBeenSet = true; m_contextualGroundingPolicyConfig = std::move(value); }
130
132
135 inline const Aws::String& GetBlockedInputMessaging() const{ return m_blockedInputMessaging; }
136 inline bool BlockedInputMessagingHasBeenSet() const { return m_blockedInputMessagingHasBeenSet; }
137 inline void SetBlockedInputMessaging(const Aws::String& value) { m_blockedInputMessagingHasBeenSet = true; m_blockedInputMessaging = value; }
138 inline void SetBlockedInputMessaging(Aws::String&& value) { m_blockedInputMessagingHasBeenSet = true; m_blockedInputMessaging = std::move(value); }
139 inline void SetBlockedInputMessaging(const char* value) { m_blockedInputMessagingHasBeenSet = true; m_blockedInputMessaging.assign(value); }
142 inline CreateGuardrailRequest& WithBlockedInputMessaging(const char* value) { SetBlockedInputMessaging(value); return *this;}
144
146
149 inline const Aws::String& GetBlockedOutputsMessaging() const{ return m_blockedOutputsMessaging; }
150 inline bool BlockedOutputsMessagingHasBeenSet() const { return m_blockedOutputsMessagingHasBeenSet; }
151 inline void SetBlockedOutputsMessaging(const Aws::String& value) { m_blockedOutputsMessagingHasBeenSet = true; m_blockedOutputsMessaging = value; }
152 inline void SetBlockedOutputsMessaging(Aws::String&& value) { m_blockedOutputsMessagingHasBeenSet = true; m_blockedOutputsMessaging = std::move(value); }
153 inline void SetBlockedOutputsMessaging(const char* value) { m_blockedOutputsMessagingHasBeenSet = true; m_blockedOutputsMessaging.assign(value); }
156 inline CreateGuardrailRequest& WithBlockedOutputsMessaging(const char* value) { SetBlockedOutputsMessaging(value); return *this;}
158
160
163 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
164 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
165 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
166 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
167 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
168 inline CreateGuardrailRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
169 inline CreateGuardrailRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
170 inline CreateGuardrailRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
172
174
177 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
180 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
181 inline CreateGuardrailRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
182 inline CreateGuardrailRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
183 inline CreateGuardrailRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
184 inline CreateGuardrailRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
186
188
195 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
196 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
197 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
198 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
199 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
201 inline CreateGuardrailRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
202 inline CreateGuardrailRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
204 private:
205
206 Aws::String m_name;
207 bool m_nameHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 GuardrailTopicPolicyConfig m_topicPolicyConfig;
213 bool m_topicPolicyConfigHasBeenSet = false;
214
215 GuardrailContentPolicyConfig m_contentPolicyConfig;
216 bool m_contentPolicyConfigHasBeenSet = false;
217
218 GuardrailWordPolicyConfig m_wordPolicyConfig;
219 bool m_wordPolicyConfigHasBeenSet = false;
220
221 GuardrailSensitiveInformationPolicyConfig m_sensitiveInformationPolicyConfig;
222 bool m_sensitiveInformationPolicyConfigHasBeenSet = false;
223
224 GuardrailContextualGroundingPolicyConfig m_contextualGroundingPolicyConfig;
225 bool m_contextualGroundingPolicyConfigHasBeenSet = false;
226
227 Aws::String m_blockedInputMessaging;
228 bool m_blockedInputMessagingHasBeenSet = false;
229
230 Aws::String m_blockedOutputsMessaging;
231 bool m_blockedOutputsMessagingHasBeenSet = false;
232
233 Aws::String m_kmsKeyId;
234 bool m_kmsKeyIdHasBeenSet = false;
235
236 Aws::Vector<Tag> m_tags;
237 bool m_tagsHasBeenSet = false;
238
239 Aws::String m_clientRequestToken;
240 bool m_clientRequestTokenHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace Bedrock
245} // namespace Aws
CreateGuardrailRequest & WithBlockedOutputsMessaging(const Aws::String &value)
CreateGuardrailRequest & WithContentPolicyConfig(const GuardrailContentPolicyConfig &value)
virtual const char * GetServiceRequestName() const override
const GuardrailSensitiveInformationPolicyConfig & GetSensitiveInformationPolicyConfig() const
CreateGuardrailRequest & WithSensitiveInformationPolicyConfig(const GuardrailSensitiveInformationPolicyConfig &value)
CreateGuardrailRequest & WithTopicPolicyConfig(const GuardrailTopicPolicyConfig &value)
void SetWordPolicyConfig(const GuardrailWordPolicyConfig &value)
CreateGuardrailRequest & WithTopicPolicyConfig(GuardrailTopicPolicyConfig &&value)
void SetBlockedInputMessaging(const Aws::String &value)
CreateGuardrailRequest & WithContentPolicyConfig(GuardrailContentPolicyConfig &&value)
CreateGuardrailRequest & WithContextualGroundingPolicyConfig(const GuardrailContextualGroundingPolicyConfig &value)
const GuardrailTopicPolicyConfig & GetTopicPolicyConfig() const
void SetTopicPolicyConfig(GuardrailTopicPolicyConfig &&value)
CreateGuardrailRequest & WithKmsKeyId(const char *value)
CreateGuardrailRequest & WithBlockedOutputsMessaging(Aws::String &&value)
void SetBlockedOutputsMessaging(const Aws::String &value)
CreateGuardrailRequest & WithContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig &&value)
CreateGuardrailRequest & WithDescription(const char *value)
CreateGuardrailRequest & WithBlockedInputMessaging(Aws::String &&value)
CreateGuardrailRequest & WithName(Aws::String &&value)
void SetWordPolicyConfig(GuardrailWordPolicyConfig &&value)
CreateGuardrailRequest & WithSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
const GuardrailContentPolicyConfig & GetContentPolicyConfig() const
void SetContentPolicyConfig(GuardrailContentPolicyConfig &&value)
CreateGuardrailRequest & WithTags(const Aws::Vector< Tag > &value)
CreateGuardrailRequest & WithTags(Aws::Vector< Tag > &&value)
void SetSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig &&value)
CreateGuardrailRequest & WithClientRequestToken(Aws::String &&value)
CreateGuardrailRequest & WithKmsKeyId(Aws::String &&value)
CreateGuardrailRequest & WithBlockedInputMessaging(const char *value)
CreateGuardrailRequest & WithName(const Aws::String &value)
CreateGuardrailRequest & WithName(const char *value)
CreateGuardrailRequest & AddTags(const Tag &value)
void SetSensitiveInformationPolicyConfig(const GuardrailSensitiveInformationPolicyConfig &value)
CreateGuardrailRequest & WithDescription(const Aws::String &value)
CreateGuardrailRequest & WithClientRequestToken(const char *value)
CreateGuardrailRequest & WithWordPolicyConfig(GuardrailWordPolicyConfig &&value)
CreateGuardrailRequest & WithWordPolicyConfig(const GuardrailWordPolicyConfig &value)
void SetContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig &&value)
void SetClientRequestToken(const Aws::String &value)
CreateGuardrailRequest & WithClientRequestToken(const Aws::String &value)
void SetTopicPolicyConfig(const GuardrailTopicPolicyConfig &value)
CreateGuardrailRequest & AddTags(Tag &&value)
void SetContextualGroundingPolicyConfig(const GuardrailContextualGroundingPolicyConfig &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateGuardrailRequest & WithDescription(Aws::String &&value)
CreateGuardrailRequest & WithBlockedInputMessaging(const Aws::String &value)
CreateGuardrailRequest & WithBlockedOutputsMessaging(const char *value)
void SetContentPolicyConfig(const GuardrailContentPolicyConfig &value)
const GuardrailWordPolicyConfig & GetWordPolicyConfig() const
const GuardrailContextualGroundingPolicyConfig & GetContextualGroundingPolicyConfig() const
CreateGuardrailRequest & WithKmsKeyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector