AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePromptResult.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent/model/PromptVariant.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent
27{
28namespace Model
29{
31 {
32 public:
33 AWS_BEDROCKAGENT_API CreatePromptResult();
36
37
39
42 inline const Aws::String& GetArn() const{ return m_arn; }
43 inline void SetArn(const Aws::String& value) { m_arn = value; }
44 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
45 inline void SetArn(const char* value) { m_arn.assign(value); }
46 inline CreatePromptResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
47 inline CreatePromptResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
48 inline CreatePromptResult& WithArn(const char* value) { SetArn(value); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
56 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
57 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
58 inline CreatePromptResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
59 inline CreatePromptResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
61
63
67 inline const Aws::String& GetCustomerEncryptionKeyArn() const{ return m_customerEncryptionKeyArn; }
68 inline void SetCustomerEncryptionKeyArn(const Aws::String& value) { m_customerEncryptionKeyArn = value; }
69 inline void SetCustomerEncryptionKeyArn(Aws::String&& value) { m_customerEncryptionKeyArn = std::move(value); }
70 inline void SetCustomerEncryptionKeyArn(const char* value) { m_customerEncryptionKeyArn.assign(value); }
73 inline CreatePromptResult& WithCustomerEncryptionKeyArn(const char* value) { SetCustomerEncryptionKeyArn(value); return *this;}
75
77
80 inline const Aws::String& GetDefaultVariant() const{ return m_defaultVariant; }
81 inline void SetDefaultVariant(const Aws::String& value) { m_defaultVariant = value; }
82 inline void SetDefaultVariant(Aws::String&& value) { m_defaultVariant = std::move(value); }
83 inline void SetDefaultVariant(const char* value) { m_defaultVariant.assign(value); }
84 inline CreatePromptResult& WithDefaultVariant(const Aws::String& value) { SetDefaultVariant(value); return *this;}
85 inline CreatePromptResult& WithDefaultVariant(Aws::String&& value) { SetDefaultVariant(std::move(value)); return *this;}
86 inline CreatePromptResult& WithDefaultVariant(const char* value) { SetDefaultVariant(value); return *this;}
88
90
93 inline const Aws::String& GetDescription() const{ return m_description; }
94 inline void SetDescription(const Aws::String& value) { m_description = value; }
95 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
96 inline void SetDescription(const char* value) { m_description.assign(value); }
97 inline CreatePromptResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 inline CreatePromptResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
99 inline CreatePromptResult& WithDescription(const char* value) { SetDescription(value); return *this;}
101
103
106 inline const Aws::String& GetId() const{ return m_id; }
107 inline void SetId(const Aws::String& value) { m_id = value; }
108 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
109 inline void SetId(const char* value) { m_id.assign(value); }
110 inline CreatePromptResult& WithId(const Aws::String& value) { SetId(value); return *this;}
111 inline CreatePromptResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
112 inline CreatePromptResult& WithId(const char* value) { SetId(value); return *this;}
114
116
119 inline const Aws::String& GetName() const{ return m_name; }
120 inline void SetName(const Aws::String& value) { m_name = value; }
121 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
122 inline void SetName(const char* value) { m_name.assign(value); }
123 inline CreatePromptResult& WithName(const Aws::String& value) { SetName(value); return *this;}
124 inline CreatePromptResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
125 inline CreatePromptResult& WithName(const char* value) { SetName(value); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
133 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
134 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
135 inline CreatePromptResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
136 inline CreatePromptResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<PromptVariant>& GetVariants() const{ return m_variants; }
144 inline void SetVariants(const Aws::Vector<PromptVariant>& value) { m_variants = value; }
145 inline void SetVariants(Aws::Vector<PromptVariant>&& value) { m_variants = std::move(value); }
146 inline CreatePromptResult& WithVariants(const Aws::Vector<PromptVariant>& value) { SetVariants(value); return *this;}
147 inline CreatePromptResult& WithVariants(Aws::Vector<PromptVariant>&& value) { SetVariants(std::move(value)); return *this;}
148 inline CreatePromptResult& AddVariants(const PromptVariant& value) { m_variants.push_back(value); return *this; }
149 inline CreatePromptResult& AddVariants(PromptVariant&& value) { m_variants.push_back(std::move(value)); return *this; }
151
153
157 inline const Aws::String& GetVersion() const{ return m_version; }
158 inline void SetVersion(const Aws::String& value) { m_version = value; }
159 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
160 inline void SetVersion(const char* value) { m_version.assign(value); }
161 inline CreatePromptResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
162 inline CreatePromptResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
163 inline CreatePromptResult& WithVersion(const char* value) { SetVersion(value); return *this;}
165
167
168 inline const Aws::String& GetRequestId() const{ return m_requestId; }
169 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
170 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
171 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
172 inline CreatePromptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
173 inline CreatePromptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
174 inline CreatePromptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
176 private:
177
178 Aws::String m_arn;
179
180 Aws::Utils::DateTime m_createdAt;
181
182 Aws::String m_customerEncryptionKeyArn;
183
184 Aws::String m_defaultVariant;
185
186 Aws::String m_description;
187
188 Aws::String m_id;
189
190 Aws::String m_name;
191
192 Aws::Utils::DateTime m_updatedAt;
193
195
196 Aws::String m_version;
197
198 Aws::String m_requestId;
199 };
200
201} // namespace Model
202} // namespace BedrockAgent
203} // namespace Aws
CreatePromptResult & AddVariants(PromptVariant &&value)
AWS_BEDROCKAGENT_API CreatePromptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePromptResult & WithDefaultVariant(Aws::String &&value)
CreatePromptResult & WithDescription(const char *value)
void SetCustomerEncryptionKeyArn(Aws::String &&value)
void SetVariants(Aws::Vector< PromptVariant > &&value)
CreatePromptResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
CreatePromptResult & WithArn(const char *value)
void SetVariants(const Aws::Vector< PromptVariant > &value)
CreatePromptResult & WithVariants(const Aws::Vector< PromptVariant > &value)
CreatePromptResult & WithDescription(Aws::String &&value)
const Aws::String & GetCustomerEncryptionKeyArn() const
CreatePromptResult & WithVersion(const Aws::String &value)
void SetDefaultVariant(const Aws::String &value)
CreatePromptResult & WithId(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
CreatePromptResult & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDescription(const Aws::String &value)
CreatePromptResult & WithCustomerEncryptionKeyArn(Aws::String &&value)
CreatePromptResult & WithCreatedAt(Aws::Utils::DateTime &&value)
CreatePromptResult & WithDefaultVariant(const char *value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetCustomerEncryptionKeyArn(const Aws::String &value)
CreatePromptResult & AddVariants(const PromptVariant &value)
CreatePromptResult & WithArn(Aws::String &&value)
CreatePromptResult & WithName(const Aws::String &value)
const Aws::Vector< PromptVariant > & GetVariants() const
CreatePromptResult & WithDefaultVariant(const Aws::String &value)
CreatePromptResult & WithVersion(Aws::String &&value)
CreatePromptResult & WithCustomerEncryptionKeyArn(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CreatePromptResult & WithId(const Aws::String &value)
CreatePromptResult & WithRequestId(const Aws::String &value)
CreatePromptResult & WithArn(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
CreatePromptResult & WithName(Aws::String &&value)
CreatePromptResult & WithVariants(Aws::Vector< PromptVariant > &&value)
CreatePromptResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
CreatePromptResult & WithRequestId(Aws::String &&value)
CreatePromptResult & WithDescription(const Aws::String &value)
CreatePromptResult & WithRequestId(const char *value)
AWS_BEDROCKAGENT_API CreatePromptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePromptResult & WithVersion(const char *value)
CreatePromptResult & WithId(const char *value)
CreatePromptResult & WithName(const char *value)
CreatePromptResult & WithCustomerEncryptionKeyArn(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