AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateGuardrailRequest.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 <utility>
16
17namespace Aws
18{
19namespace Bedrock
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BEDROCK_API UpdateGuardrailRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateGuardrail"; }
36
37 AWS_BEDROCK_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetGuardrailIdentifier() const{ return m_guardrailIdentifier; }
45 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
46 inline void SetGuardrailIdentifier(const Aws::String& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = value; }
47 inline void SetGuardrailIdentifier(Aws::String&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::move(value); }
48 inline void SetGuardrailIdentifier(const char* value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier.assign(value); }
50 inline UpdateGuardrailRequest& WithGuardrailIdentifier(Aws::String&& value) { SetGuardrailIdentifier(std::move(value)); return *this;}
51 inline UpdateGuardrailRequest& WithGuardrailIdentifier(const char* value) { SetGuardrailIdentifier(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline UpdateGuardrailRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline UpdateGuardrailRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline UpdateGuardrailRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline UpdateGuardrailRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline UpdateGuardrailRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline UpdateGuardrailRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const GuardrailTopicPolicyConfig& GetTopicPolicyConfig() const{ return m_topicPolicyConfig; }
87 inline bool TopicPolicyConfigHasBeenSet() const { return m_topicPolicyConfigHasBeenSet; }
88 inline void SetTopicPolicyConfig(const GuardrailTopicPolicyConfig& value) { m_topicPolicyConfigHasBeenSet = true; m_topicPolicyConfig = value; }
89 inline void SetTopicPolicyConfig(GuardrailTopicPolicyConfig&& value) { m_topicPolicyConfigHasBeenSet = true; m_topicPolicyConfig = std::move(value); }
93
95
98 inline const GuardrailContentPolicyConfig& GetContentPolicyConfig() const{ return m_contentPolicyConfig; }
99 inline bool ContentPolicyConfigHasBeenSet() const { return m_contentPolicyConfigHasBeenSet; }
100 inline void SetContentPolicyConfig(const GuardrailContentPolicyConfig& value) { m_contentPolicyConfigHasBeenSet = true; m_contentPolicyConfig = value; }
101 inline void SetContentPolicyConfig(GuardrailContentPolicyConfig&& value) { m_contentPolicyConfigHasBeenSet = true; m_contentPolicyConfig = std::move(value); }
105
107
110 inline const GuardrailWordPolicyConfig& GetWordPolicyConfig() const{ return m_wordPolicyConfig; }
111 inline bool WordPolicyConfigHasBeenSet() const { return m_wordPolicyConfigHasBeenSet; }
112 inline void SetWordPolicyConfig(const GuardrailWordPolicyConfig& value) { m_wordPolicyConfigHasBeenSet = true; m_wordPolicyConfig = value; }
113 inline void SetWordPolicyConfig(GuardrailWordPolicyConfig&& value) { m_wordPolicyConfigHasBeenSet = true; m_wordPolicyConfig = std::move(value); }
117
119
122 inline const GuardrailSensitiveInformationPolicyConfig& GetSensitiveInformationPolicyConfig() const{ return m_sensitiveInformationPolicyConfig; }
123 inline bool SensitiveInformationPolicyConfigHasBeenSet() const { return m_sensitiveInformationPolicyConfigHasBeenSet; }
124 inline void SetSensitiveInformationPolicyConfig(const GuardrailSensitiveInformationPolicyConfig& value) { m_sensitiveInformationPolicyConfigHasBeenSet = true; m_sensitiveInformationPolicyConfig = value; }
125 inline void SetSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig&& value) { m_sensitiveInformationPolicyConfigHasBeenSet = true; m_sensitiveInformationPolicyConfig = std::move(value); }
129
131
134 inline const GuardrailContextualGroundingPolicyConfig& GetContextualGroundingPolicyConfig() const{ return m_contextualGroundingPolicyConfig; }
135 inline bool ContextualGroundingPolicyConfigHasBeenSet() const { return m_contextualGroundingPolicyConfigHasBeenSet; }
136 inline void SetContextualGroundingPolicyConfig(const GuardrailContextualGroundingPolicyConfig& value) { m_contextualGroundingPolicyConfigHasBeenSet = true; m_contextualGroundingPolicyConfig = value; }
137 inline void SetContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig&& value) { m_contextualGroundingPolicyConfigHasBeenSet = true; m_contextualGroundingPolicyConfig = std::move(value); }
141
143
146 inline const Aws::String& GetBlockedInputMessaging() const{ return m_blockedInputMessaging; }
147 inline bool BlockedInputMessagingHasBeenSet() const { return m_blockedInputMessagingHasBeenSet; }
148 inline void SetBlockedInputMessaging(const Aws::String& value) { m_blockedInputMessagingHasBeenSet = true; m_blockedInputMessaging = value; }
149 inline void SetBlockedInputMessaging(Aws::String&& value) { m_blockedInputMessagingHasBeenSet = true; m_blockedInputMessaging = std::move(value); }
150 inline void SetBlockedInputMessaging(const char* value) { m_blockedInputMessagingHasBeenSet = true; m_blockedInputMessaging.assign(value); }
153 inline UpdateGuardrailRequest& WithBlockedInputMessaging(const char* value) { SetBlockedInputMessaging(value); return *this;}
155
157
160 inline const Aws::String& GetBlockedOutputsMessaging() const{ return m_blockedOutputsMessaging; }
161 inline bool BlockedOutputsMessagingHasBeenSet() const { return m_blockedOutputsMessagingHasBeenSet; }
162 inline void SetBlockedOutputsMessaging(const Aws::String& value) { m_blockedOutputsMessagingHasBeenSet = true; m_blockedOutputsMessaging = value; }
163 inline void SetBlockedOutputsMessaging(Aws::String&& value) { m_blockedOutputsMessagingHasBeenSet = true; m_blockedOutputsMessaging = std::move(value); }
164 inline void SetBlockedOutputsMessaging(const char* value) { m_blockedOutputsMessagingHasBeenSet = true; m_blockedOutputsMessaging.assign(value); }
167 inline UpdateGuardrailRequest& WithBlockedOutputsMessaging(const char* value) { SetBlockedOutputsMessaging(value); return *this;}
169
171
174 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
175 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
176 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
177 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
178 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
179 inline UpdateGuardrailRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
180 inline UpdateGuardrailRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
181 inline UpdateGuardrailRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
183 private:
184
185 Aws::String m_guardrailIdentifier;
186 bool m_guardrailIdentifierHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
194 GuardrailTopicPolicyConfig m_topicPolicyConfig;
195 bool m_topicPolicyConfigHasBeenSet = false;
196
197 GuardrailContentPolicyConfig m_contentPolicyConfig;
198 bool m_contentPolicyConfigHasBeenSet = false;
199
200 GuardrailWordPolicyConfig m_wordPolicyConfig;
201 bool m_wordPolicyConfigHasBeenSet = false;
202
203 GuardrailSensitiveInformationPolicyConfig m_sensitiveInformationPolicyConfig;
204 bool m_sensitiveInformationPolicyConfigHasBeenSet = false;
205
206 GuardrailContextualGroundingPolicyConfig m_contextualGroundingPolicyConfig;
207 bool m_contextualGroundingPolicyConfigHasBeenSet = false;
208
209 Aws::String m_blockedInputMessaging;
210 bool m_blockedInputMessagingHasBeenSet = false;
211
212 Aws::String m_blockedOutputsMessaging;
213 bool m_blockedOutputsMessagingHasBeenSet = false;
214
215 Aws::String m_kmsKeyId;
216 bool m_kmsKeyIdHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace Bedrock
221} // namespace Aws
UpdateGuardrailRequest & WithKmsKeyId(Aws::String &&value)
void SetContextualGroundingPolicyConfig(const GuardrailContextualGroundingPolicyConfig &value)
UpdateGuardrailRequest & WithContextualGroundingPolicyConfig(const GuardrailContextualGroundingPolicyConfig &value)
void SetContentPolicyConfig(const GuardrailContentPolicyConfig &value)
UpdateGuardrailRequest & WithTopicPolicyConfig(const GuardrailTopicPolicyConfig &value)
void SetTopicPolicyConfig(GuardrailTopicPolicyConfig &&value)
void SetSensitiveInformationPolicyConfig(const GuardrailSensitiveInformationPolicyConfig &value)
UpdateGuardrailRequest & WithSensitiveInformationPolicyConfig(const GuardrailSensitiveInformationPolicyConfig &value)
void SetWordPolicyConfig(const GuardrailWordPolicyConfig &value)
UpdateGuardrailRequest & WithGuardrailIdentifier(const char *value)
void SetBlockedOutputsMessaging(const Aws::String &value)
UpdateGuardrailRequest & WithContentPolicyConfig(GuardrailContentPolicyConfig &&value)
void SetContentPolicyConfig(GuardrailContentPolicyConfig &&value)
UpdateGuardrailRequest & WithKmsKeyId(const char *value)
void SetGuardrailIdentifier(const Aws::String &value)
UpdateGuardrailRequest & WithContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig &&value)
void SetSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig &&value)
UpdateGuardrailRequest & WithWordPolicyConfig(GuardrailWordPolicyConfig &&value)
UpdateGuardrailRequest & WithGuardrailIdentifier(Aws::String &&value)
UpdateGuardrailRequest & WithTopicPolicyConfig(GuardrailTopicPolicyConfig &&value)
const GuardrailWordPolicyConfig & GetWordPolicyConfig() const
void SetBlockedInputMessaging(const Aws::String &value)
const GuardrailContextualGroundingPolicyConfig & GetContextualGroundingPolicyConfig() const
UpdateGuardrailRequest & WithSensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig &&value)
void SetTopicPolicyConfig(const GuardrailTopicPolicyConfig &value)
UpdateGuardrailRequest & WithBlockedInputMessaging(Aws::String &&value)
UpdateGuardrailRequest & WithName(const Aws::String &value)
UpdateGuardrailRequest & WithContentPolicyConfig(const GuardrailContentPolicyConfig &value)
UpdateGuardrailRequest & WithKmsKeyId(const Aws::String &value)
UpdateGuardrailRequest & WithBlockedOutputsMessaging(const char *value)
const GuardrailContentPolicyConfig & GetContentPolicyConfig() const
UpdateGuardrailRequest & WithGuardrailIdentifier(const Aws::String &value)
const GuardrailSensitiveInformationPolicyConfig & GetSensitiveInformationPolicyConfig() const
void SetWordPolicyConfig(GuardrailWordPolicyConfig &&value)
UpdateGuardrailRequest & WithBlockedOutputsMessaging(const Aws::String &value)
UpdateGuardrailRequest & WithDescription(Aws::String &&value)
UpdateGuardrailRequest & WithDescription(const char *value)
UpdateGuardrailRequest & WithBlockedOutputsMessaging(Aws::String &&value)
void SetContextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig &&value)
UpdateGuardrailRequest & WithBlockedInputMessaging(const Aws::String &value)
UpdateGuardrailRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateGuardrailRequest & WithBlockedInputMessaging(const char *value)
UpdateGuardrailRequest & WithWordPolicyConfig(const GuardrailWordPolicyConfig &value)
UpdateGuardrailRequest & WithDescription(const Aws::String &value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
UpdateGuardrailRequest & WithName(const char *value)
const GuardrailTopicPolicyConfig & GetTopicPolicyConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String