AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePromptVersionResult.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 CreatePromptVersionResult();
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 CreatePromptVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
47 inline CreatePromptVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
48 inline CreatePromptVersionResult& 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 CreatePromptVersionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
59 inline CreatePromptVersionResult& 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); }
75
77
83 inline const Aws::String& GetDefaultVariant() const{ return m_defaultVariant; }
84 inline void SetDefaultVariant(const Aws::String& value) { m_defaultVariant = value; }
85 inline void SetDefaultVariant(Aws::String&& value) { m_defaultVariant = std::move(value); }
86 inline void SetDefaultVariant(const char* value) { m_defaultVariant.assign(value); }
87 inline CreatePromptVersionResult& WithDefaultVariant(const Aws::String& value) { SetDefaultVariant(value); return *this;}
88 inline CreatePromptVersionResult& WithDefaultVariant(Aws::String&& value) { SetDefaultVariant(std::move(value)); return *this;}
89 inline CreatePromptVersionResult& WithDefaultVariant(const char* value) { SetDefaultVariant(value); return *this;}
91
93
96 inline const Aws::String& GetDescription() const{ return m_description; }
97 inline void SetDescription(const Aws::String& value) { m_description = value; }
98 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
99 inline void SetDescription(const char* value) { m_description.assign(value); }
100 inline CreatePromptVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
101 inline CreatePromptVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
102 inline CreatePromptVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
104
106
109 inline const Aws::String& GetId() const{ return m_id; }
110 inline void SetId(const Aws::String& value) { m_id = value; }
111 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
112 inline void SetId(const char* value) { m_id.assign(value); }
113 inline CreatePromptVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
114 inline CreatePromptVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
115 inline CreatePromptVersionResult& WithId(const char* value) { SetId(value); return *this;}
117
119
122 inline const Aws::String& GetName() const{ return m_name; }
123 inline void SetName(const Aws::String& value) { m_name = value; }
124 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
125 inline void SetName(const char* value) { m_name.assign(value); }
126 inline CreatePromptVersionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
127 inline CreatePromptVersionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
128 inline CreatePromptVersionResult& WithName(const char* value) { SetName(value); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
136 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
137 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
138 inline CreatePromptVersionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
139 inline CreatePromptVersionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
141
143
146 inline const Aws::Vector<PromptVariant>& GetVariants() const{ return m_variants; }
147 inline void SetVariants(const Aws::Vector<PromptVariant>& value) { m_variants = value; }
148 inline void SetVariants(Aws::Vector<PromptVariant>&& value) { m_variants = std::move(value); }
150 inline CreatePromptVersionResult& WithVariants(Aws::Vector<PromptVariant>&& value) { SetVariants(std::move(value)); return *this;}
151 inline CreatePromptVersionResult& AddVariants(const PromptVariant& value) { m_variants.push_back(value); return *this; }
152 inline CreatePromptVersionResult& AddVariants(PromptVariant&& value) { m_variants.push_back(std::move(value)); return *this; }
154
156
160 inline const Aws::String& GetVersion() const{ return m_version; }
161 inline void SetVersion(const Aws::String& value) { m_version = value; }
162 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
163 inline void SetVersion(const char* value) { m_version.assign(value); }
164 inline CreatePromptVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
165 inline CreatePromptVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
166 inline CreatePromptVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
168
170
171 inline const Aws::String& GetRequestId() const{ return m_requestId; }
172 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
173 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
174 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
175 inline CreatePromptVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
176 inline CreatePromptVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
177 inline CreatePromptVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
179 private:
180
181 Aws::String m_arn;
182
183 Aws::Utils::DateTime m_createdAt;
184
185 Aws::String m_customerEncryptionKeyArn;
186
187 Aws::String m_defaultVariant;
188
189 Aws::String m_description;
190
191 Aws::String m_id;
192
193 Aws::String m_name;
194
195 Aws::Utils::DateTime m_updatedAt;
196
198
199 Aws::String m_version;
200
201 Aws::String m_requestId;
202 };
203
204} // namespace Model
205} // namespace BedrockAgent
206} // namespace Aws
CreatePromptVersionResult & WithArn(Aws::String &&value)
const Aws::Vector< PromptVariant > & GetVariants() const
CreatePromptVersionResult & WithId(Aws::String &&value)
CreatePromptVersionResult & WithVariants(Aws::Vector< PromptVariant > &&value)
AWS_BEDROCKAGENT_API CreatePromptVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePromptVersionResult & WithCustomerEncryptionKeyArn(const Aws::String &value)
CreatePromptVersionResult & WithName(Aws::String &&value)
CreatePromptVersionResult & WithCreatedAt(const Aws::Utils::DateTime &value)
CreatePromptVersionResult & WithDefaultVariant(Aws::String &&value)
CreatePromptVersionResult & WithRequestId(Aws::String &&value)
void SetVariants(Aws::Vector< PromptVariant > &&value)
void SetVariants(const Aws::Vector< PromptVariant > &value)
CreatePromptVersionResult & WithName(const char *value)
CreatePromptVersionResult & AddVariants(const PromptVariant &value)
CreatePromptVersionResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
CreatePromptVersionResult & WithArn(const Aws::String &value)
CreatePromptVersionResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
CreatePromptVersionResult & WithId(const char *value)
CreatePromptVersionResult & WithDescription(const Aws::String &value)
CreatePromptVersionResult & AddVariants(PromptVariant &&value)
AWS_BEDROCKAGENT_API CreatePromptVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePromptVersionResult & WithId(const Aws::String &value)
CreatePromptVersionResult & WithRequestId(const Aws::String &value)
CreatePromptVersionResult & WithDescription(Aws::String &&value)
CreatePromptVersionResult & WithVersion(Aws::String &&value)
CreatePromptVersionResult & WithVariants(const Aws::Vector< PromptVariant > &value)
CreatePromptVersionResult & WithDefaultVariant(const char *value)
CreatePromptVersionResult & WithName(const Aws::String &value)
CreatePromptVersionResult & WithArn(const char *value)
CreatePromptVersionResult & WithCustomerEncryptionKeyArn(Aws::String &&value)
CreatePromptVersionResult & WithVersion(const char *value)
CreatePromptVersionResult & WithCustomerEncryptionKeyArn(const char *value)
CreatePromptVersionResult & WithVersion(const Aws::String &value)
CreatePromptVersionResult & WithDefaultVariant(const Aws::String &value)
CreatePromptVersionResult & WithRequestId(const char *value)
CreatePromptVersionResult & WithDescription(const char *value)
CreatePromptVersionResult & WithCreatedAt(Aws::Utils::DateTime &&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