AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePromptRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock-agent/model/PromptVariant.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace BedrockAgent
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCKAGENT_API CreatePromptRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreatePrompt"; }
35
36 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreatePromptRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreatePromptRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreatePromptRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
61 inline const Aws::String& GetCustomerEncryptionKeyArn() const{ return m_customerEncryptionKeyArn; }
62 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
63 inline void SetCustomerEncryptionKeyArn(const Aws::String& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = value; }
64 inline void SetCustomerEncryptionKeyArn(Aws::String&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::move(value); }
65 inline void SetCustomerEncryptionKeyArn(const char* value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn.assign(value); }
68 inline CreatePromptRequest& WithCustomerEncryptionKeyArn(const char* value) { SetCustomerEncryptionKeyArn(value); return *this;}
70
72
78 inline const Aws::String& GetDefaultVariant() const{ return m_defaultVariant; }
79 inline bool DefaultVariantHasBeenSet() const { return m_defaultVariantHasBeenSet; }
80 inline void SetDefaultVariant(const Aws::String& value) { m_defaultVariantHasBeenSet = true; m_defaultVariant = value; }
81 inline void SetDefaultVariant(Aws::String&& value) { m_defaultVariantHasBeenSet = true; m_defaultVariant = std::move(value); }
82 inline void SetDefaultVariant(const char* value) { m_defaultVariantHasBeenSet = true; m_defaultVariant.assign(value); }
83 inline CreatePromptRequest& WithDefaultVariant(const Aws::String& value) { SetDefaultVariant(value); return *this;}
84 inline CreatePromptRequest& WithDefaultVariant(Aws::String&& value) { SetDefaultVariant(std::move(value)); return *this;}
85 inline CreatePromptRequest& WithDefaultVariant(const char* value) { SetDefaultVariant(value); return *this;}
87
89
92 inline const Aws::String& GetDescription() const{ return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
97 inline CreatePromptRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 inline CreatePromptRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
99 inline CreatePromptRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
101
103
106 inline const Aws::String& GetName() const{ return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
109 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
110 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
111 inline CreatePromptRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
112 inline CreatePromptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
113 inline CreatePromptRequest& WithName(const char* value) { SetName(value); return *this;}
115
117
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
125 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
126 inline CreatePromptRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
127 inline CreatePromptRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
128 inline CreatePromptRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
129 inline CreatePromptRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline CreatePromptRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline CreatePromptRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
132 inline CreatePromptRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline CreatePromptRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
134 inline CreatePromptRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
136
138
141 inline const Aws::Vector<PromptVariant>& GetVariants() const{ return m_variants; }
142 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
143 inline void SetVariants(const Aws::Vector<PromptVariant>& value) { m_variantsHasBeenSet = true; m_variants = value; }
144 inline void SetVariants(Aws::Vector<PromptVariant>&& value) { m_variantsHasBeenSet = true; m_variants = std::move(value); }
145 inline CreatePromptRequest& WithVariants(const Aws::Vector<PromptVariant>& value) { SetVariants(value); return *this;}
146 inline CreatePromptRequest& WithVariants(Aws::Vector<PromptVariant>&& value) { SetVariants(std::move(value)); return *this;}
147 inline CreatePromptRequest& AddVariants(const PromptVariant& value) { m_variantsHasBeenSet = true; m_variants.push_back(value); return *this; }
148 inline CreatePromptRequest& AddVariants(PromptVariant&& value) { m_variantsHasBeenSet = true; m_variants.push_back(std::move(value)); return *this; }
150 private:
151
152 Aws::String m_clientToken;
153 bool m_clientTokenHasBeenSet = false;
154
155 Aws::String m_customerEncryptionKeyArn;
156 bool m_customerEncryptionKeyArnHasBeenSet = false;
157
158 Aws::String m_defaultVariant;
159 bool m_defaultVariantHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
168 bool m_tagsHasBeenSet = false;
169
171 bool m_variantsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace BedrockAgent
176} // namespace Aws
void SetCustomerEncryptionKeyArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreatePromptRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreatePromptRequest & AddVariants(PromptVariant &&value)
CreatePromptRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreatePromptRequest & WithCustomerEncryptionKeyArn(const Aws::String &value)
CreatePromptRequest & WithDefaultVariant(const char *value)
CreatePromptRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePromptRequest & WithVariants(Aws::Vector< PromptVariant > &&value)
void SetDefaultVariant(const Aws::String &value)
CreatePromptRequest & WithDescription(Aws::String &&value)
CreatePromptRequest & WithName(const char *value)
CreatePromptRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetVariants(const Aws::Vector< PromptVariant > &value)
CreatePromptRequest & AddTags(Aws::String &&key, const char *value)
CreatePromptRequest & WithVariants(const Aws::Vector< PromptVariant > &value)
const Aws::Vector< PromptVariant > & GetVariants() const
const Aws::String & GetCustomerEncryptionKeyArn() const
CreatePromptRequest & AddTags(const char *key, const char *value)
CreatePromptRequest & WithName(Aws::String &&value)
CreatePromptRequest & WithDefaultVariant(Aws::String &&value)
CreatePromptRequest & WithDescription(const char *value)
CreatePromptRequest & WithCustomerEncryptionKeyArn(const char *value)
CreatePromptRequest & AddTags(Aws::String &&key, Aws::String &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreatePromptRequest & AddVariants(const PromptVariant &value)
CreatePromptRequest & WithCustomerEncryptionKeyArn(Aws::String &&value)
CreatePromptRequest & WithDefaultVariant(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetVariants(Aws::Vector< PromptVariant > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePromptRequest & AddTags(const char *key, Aws::String &&value)
CreatePromptRequest & WithName(const Aws::String &value)
CreatePromptRequest & WithDescription(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePromptRequest & WithClientToken(const Aws::String &value)
CreatePromptRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreatePromptRequest & WithClientToken(Aws::String &&value)
CreatePromptRequest & WithClientToken(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector