AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
GetPromptResult.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/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.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 GetPromptResult() = default;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 GetPromptResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 GetPromptResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
65 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
66 template<typename CustomerEncryptionKeyArnT = Aws::String>
67 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
68 template<typename CustomerEncryptionKeyArnT = Aws::String>
69 GetPromptResult& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
71
73
79 inline const Aws::String& GetDefaultVariant() const { return m_defaultVariant; }
80 template<typename DefaultVariantT = Aws::String>
81 void SetDefaultVariant(DefaultVariantT&& value) { m_defaultVariantHasBeenSet = true; m_defaultVariant = std::forward<DefaultVariantT>(value); }
82 template<typename DefaultVariantT = Aws::String>
83 GetPromptResult& WithDefaultVariant(DefaultVariantT&& value) { SetDefaultVariant(std::forward<DefaultVariantT>(value)); return *this;}
85
87
90 inline const Aws::Vector<PromptVariant>& GetVariants() const { return m_variants; }
91 template<typename VariantsT = Aws::Vector<PromptVariant>>
92 void SetVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants = std::forward<VariantsT>(value); }
93 template<typename VariantsT = Aws::Vector<PromptVariant>>
94 GetPromptResult& WithVariants(VariantsT&& value) { SetVariants(std::forward<VariantsT>(value)); return *this;}
95 template<typename VariantsT = PromptVariant>
96 GetPromptResult& AddVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants.emplace_back(std::forward<VariantsT>(value)); return *this; }
98
100
103 inline const Aws::String& GetId() const { return m_id; }
104 template<typename IdT = Aws::String>
105 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
106 template<typename IdT = Aws::String>
107 GetPromptResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
109
111
115 inline const Aws::String& GetArn() const { return m_arn; }
116 template<typename ArnT = Aws::String>
117 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
118 template<typename ArnT = Aws::String>
119 GetPromptResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
121
123
126 inline const Aws::String& GetVersion() const { return m_version; }
127 template<typename VersionT = Aws::String>
128 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
129 template<typename VersionT = Aws::String>
130 GetPromptResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
138 template<typename CreatedAtT = Aws::Utils::DateTime>
139 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
140 template<typename CreatedAtT = Aws::Utils::DateTime>
141 GetPromptResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
143
145
148 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
149 template<typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
151 template<typename UpdatedAtT = Aws::Utils::DateTime>
152 GetPromptResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
154
156
157 inline const Aws::String& GetRequestId() const { return m_requestId; }
158 template<typename RequestIdT = Aws::String>
159 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
160 template<typename RequestIdT = Aws::String>
161 GetPromptResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
163 private:
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_customerEncryptionKeyArn;
172 bool m_customerEncryptionKeyArnHasBeenSet = false;
173
174 Aws::String m_defaultVariant;
175 bool m_defaultVariantHasBeenSet = false;
176
178 bool m_variantsHasBeenSet = false;
179
180 Aws::String m_id;
181 bool m_idHasBeenSet = false;
182
183 Aws::String m_arn;
184 bool m_arnHasBeenSet = false;
185
186 Aws::String m_version;
187 bool m_versionHasBeenSet = false;
188
189 Aws::Utils::DateTime m_createdAt{};
190 bool m_createdAtHasBeenSet = false;
191
192 Aws::Utils::DateTime m_updatedAt{};
193 bool m_updatedAtHasBeenSet = false;
194
195 Aws::String m_requestId;
196 bool m_requestIdHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace BedrockAgent
201} // namespace Aws
GetPromptResult & WithDefaultVariant(DefaultVariantT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetPromptResult & WithId(IdT &&value)
GetPromptResult & AddVariants(VariantsT &&value)
AWS_BEDROCKAGENT_API GetPromptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
void SetDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API GetPromptResult()=default
GetPromptResult & WithCreatedAt(CreatedAtT &&value)
AWS_BEDROCKAGENT_API GetPromptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPromptResult & WithName(NameT &&value)
GetPromptResult & WithDescription(DescriptionT &&value)
GetPromptResult & WithRequestId(RequestIdT &&value)
void SetDefaultVariant(DefaultVariantT &&value)
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
const Aws::Vector< PromptVariant > & GetVariants() const
const Aws::String & GetDefaultVariant() const
GetPromptResult & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetPromptResult & WithUpdatedAt(UpdatedAtT &&value)
GetPromptResult & WithVariants(VariantsT &&value)
GetPromptResult & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetCustomerEncryptionKeyArn() const
GetPromptResult & WithVersion(VersionT &&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