AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePromptResult.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 UpdatePromptResult();
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 UpdatePromptResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
47 inline UpdatePromptResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
48 inline UpdatePromptResult& 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 UpdatePromptResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
59 inline UpdatePromptResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
61
63
66 inline const Aws::String& GetCustomerEncryptionKeyArn() const{ return m_customerEncryptionKeyArn; }
67 inline void SetCustomerEncryptionKeyArn(const Aws::String& value) { m_customerEncryptionKeyArn = value; }
68 inline void SetCustomerEncryptionKeyArn(Aws::String&& value) { m_customerEncryptionKeyArn = std::move(value); }
69 inline void SetCustomerEncryptionKeyArn(const char* value) { m_customerEncryptionKeyArn.assign(value); }
72 inline UpdatePromptResult& WithCustomerEncryptionKeyArn(const char* value) { SetCustomerEncryptionKeyArn(value); return *this;}
74
76
82 inline const Aws::String& GetDefaultVariant() const{ return m_defaultVariant; }
83 inline void SetDefaultVariant(const Aws::String& value) { m_defaultVariant = value; }
84 inline void SetDefaultVariant(Aws::String&& value) { m_defaultVariant = std::move(value); }
85 inline void SetDefaultVariant(const char* value) { m_defaultVariant.assign(value); }
86 inline UpdatePromptResult& WithDefaultVariant(const Aws::String& value) { SetDefaultVariant(value); return *this;}
87 inline UpdatePromptResult& WithDefaultVariant(Aws::String&& value) { SetDefaultVariant(std::move(value)); return *this;}
88 inline UpdatePromptResult& WithDefaultVariant(const char* value) { SetDefaultVariant(value); return *this;}
90
92
95 inline const Aws::String& GetDescription() const{ return m_description; }
96 inline void SetDescription(const Aws::String& value) { m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_description.assign(value); }
99 inline UpdatePromptResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline UpdatePromptResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline UpdatePromptResult& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
108 inline const Aws::String& GetId() const{ return m_id; }
109 inline void SetId(const Aws::String& value) { m_id = value; }
110 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
111 inline void SetId(const char* value) { m_id.assign(value); }
112 inline UpdatePromptResult& WithId(const Aws::String& value) { SetId(value); return *this;}
113 inline UpdatePromptResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
114 inline UpdatePromptResult& WithId(const char* value) { SetId(value); return *this;}
116
118
121 inline const Aws::String& GetName() const{ return m_name; }
122 inline void SetName(const Aws::String& value) { m_name = value; }
123 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
124 inline void SetName(const char* value) { m_name.assign(value); }
125 inline UpdatePromptResult& WithName(const Aws::String& value) { SetName(value); return *this;}
126 inline UpdatePromptResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
127 inline UpdatePromptResult& WithName(const char* value) { SetName(value); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
135 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
136 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
137 inline UpdatePromptResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
138 inline UpdatePromptResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
140
142
145 inline const Aws::Vector<PromptVariant>& GetVariants() const{ return m_variants; }
146 inline void SetVariants(const Aws::Vector<PromptVariant>& value) { m_variants = value; }
147 inline void SetVariants(Aws::Vector<PromptVariant>&& value) { m_variants = std::move(value); }
148 inline UpdatePromptResult& WithVariants(const Aws::Vector<PromptVariant>& value) { SetVariants(value); return *this;}
149 inline UpdatePromptResult& WithVariants(Aws::Vector<PromptVariant>&& value) { SetVariants(std::move(value)); return *this;}
150 inline UpdatePromptResult& AddVariants(const PromptVariant& value) { m_variants.push_back(value); return *this; }
151 inline UpdatePromptResult& AddVariants(PromptVariant&& value) { m_variants.push_back(std::move(value)); return *this; }
153
155
159 inline const Aws::String& GetVersion() const{ return m_version; }
160 inline void SetVersion(const Aws::String& value) { m_version = value; }
161 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
162 inline void SetVersion(const char* value) { m_version.assign(value); }
163 inline UpdatePromptResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
164 inline UpdatePromptResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
165 inline UpdatePromptResult& WithVersion(const char* value) { SetVersion(value); return *this;}
167
169
170 inline const Aws::String& GetRequestId() const{ return m_requestId; }
171 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
172 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
173 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
174 inline UpdatePromptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
175 inline UpdatePromptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
176 inline UpdatePromptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
178 private:
179
180 Aws::String m_arn;
181
182 Aws::Utils::DateTime m_createdAt;
183
184 Aws::String m_customerEncryptionKeyArn;
185
186 Aws::String m_defaultVariant;
187
188 Aws::String m_description;
189
190 Aws::String m_id;
191
192 Aws::String m_name;
193
194 Aws::Utils::DateTime m_updatedAt;
195
197
198 Aws::String m_version;
199
200 Aws::String m_requestId;
201 };
202
203} // namespace Model
204} // namespace BedrockAgent
205} // namespace Aws
UpdatePromptResult & WithCustomerEncryptionKeyArn(const Aws::String &value)
UpdatePromptResult & AddVariants(PromptVariant &&value)
UpdatePromptResult & WithDescription(const char *value)
UpdatePromptResult & WithDefaultVariant(const char *value)
UpdatePromptResult & WithCreatedAt(const Aws::Utils::DateTime &value)
UpdatePromptResult & WithRequestId(Aws::String &&value)
UpdatePromptResult & WithName(const char *value)
const Aws::String & GetCustomerEncryptionKeyArn() const
UpdatePromptResult & WithId(const char *value)
UpdatePromptResult & WithVersion(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
UpdatePromptResult & WithArn(const Aws::String &value)
UpdatePromptResult & WithVariants(Aws::Vector< PromptVariant > &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
UpdatePromptResult & WithName(const Aws::String &value)
void SetVariants(Aws::Vector< PromptVariant > &&value)
UpdatePromptResult & WithCustomerEncryptionKeyArn(const char *value)
UpdatePromptResult & WithVersion(const Aws::String &value)
UpdatePromptResult & AddVariants(const PromptVariant &value)
UpdatePromptResult & WithRequestId(const char *value)
void SetDescription(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
UpdatePromptResult & WithCustomerEncryptionKeyArn(Aws::String &&value)
const Aws::Vector< PromptVariant > & GetVariants() const
UpdatePromptResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
UpdatePromptResult & WithRequestId(const Aws::String &value)
AWS_BEDROCKAGENT_API UpdatePromptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePromptResult & WithDefaultVariant(const Aws::String &value)
void SetCustomerEncryptionKeyArn(const Aws::String &value)
UpdatePromptResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
UpdatePromptResult & WithArn(Aws::String &&value)
UpdatePromptResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
UpdatePromptResult & WithId(const Aws::String &value)
UpdatePromptResult & WithDefaultVariant(Aws::String &&value)
UpdatePromptResult & WithVariants(const Aws::Vector< PromptVariant > &value)
UpdatePromptResult & WithDescription(const Aws::String &value)
void SetCustomerEncryptionKeyArn(Aws::String &&value)
UpdatePromptResult & WithDescription(Aws::String &&value)
void SetVariants(const Aws::Vector< PromptVariant > &value)
AWS_BEDROCKAGENT_API UpdatePromptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreatedAt(Aws::Utils::DateTime &&value)
UpdatePromptResult & WithId(Aws::String &&value)
void SetDefaultVariant(const Aws::String &value)
UpdatePromptResult & WithVersion(Aws::String &&value)
UpdatePromptResult & WithName(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
UpdatePromptResult & WithArn(const char *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