AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/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 GetPromptResult() = default;
36
37
39
43 inline const Aws::String& GetArn() const { return m_arn; }
44 template<typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
46 template<typename ArnT = Aws::String>
47 GetPromptResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
49
51
54 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
55 template<typename CreatedAtT = Aws::Utils::DateTime>
56 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
57 template<typename CreatedAtT = Aws::Utils::DateTime>
58 GetPromptResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
60
62
66 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
67 template<typename CustomerEncryptionKeyArnT = Aws::String>
68 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
69 template<typename CustomerEncryptionKeyArnT = Aws::String>
70 GetPromptResult& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
72
74
80 inline const Aws::String& GetDefaultVariant() const { return m_defaultVariant; }
81 template<typename DefaultVariantT = Aws::String>
82 void SetDefaultVariant(DefaultVariantT&& value) { m_defaultVariantHasBeenSet = true; m_defaultVariant = std::forward<DefaultVariantT>(value); }
83 template<typename DefaultVariantT = Aws::String>
84 GetPromptResult& WithDefaultVariant(DefaultVariantT&& value) { SetDefaultVariant(std::forward<DefaultVariantT>(value)); return *this;}
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 template<typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
94 template<typename DescriptionT = Aws::String>
95 GetPromptResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
97
99
102 inline const Aws::String& GetId() const { return m_id; }
103 template<typename IdT = Aws::String>
104 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
105 template<typename IdT = Aws::String>
106 GetPromptResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
108
110
113 inline const Aws::String& GetName() const { return m_name; }
114 template<typename NameT = Aws::String>
115 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
116 template<typename NameT = Aws::String>
117 GetPromptResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
125 template<typename UpdatedAtT = Aws::Utils::DateTime>
126 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
127 template<typename UpdatedAtT = Aws::Utils::DateTime>
128 GetPromptResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
130
132
135 inline const Aws::Vector<PromptVariant>& GetVariants() const { return m_variants; }
136 template<typename VariantsT = Aws::Vector<PromptVariant>>
137 void SetVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants = std::forward<VariantsT>(value); }
138 template<typename VariantsT = Aws::Vector<PromptVariant>>
139 GetPromptResult& WithVariants(VariantsT&& value) { SetVariants(std::forward<VariantsT>(value)); return *this;}
140 template<typename VariantsT = PromptVariant>
141 GetPromptResult& AddVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants.emplace_back(std::forward<VariantsT>(value)); return *this; }
143
145
148 inline const Aws::String& GetVersion() const { return m_version; }
149 template<typename VersionT = Aws::String>
150 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
151 template<typename VersionT = Aws::String>
152 GetPromptResult& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(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_arn;
166 bool m_arnHasBeenSet = false;
167
168 Aws::Utils::DateTime m_createdAt{};
169 bool m_createdAtHasBeenSet = false;
170
171 Aws::String m_customerEncryptionKeyArn;
172 bool m_customerEncryptionKeyArnHasBeenSet = false;
173
174 Aws::String m_defaultVariant;
175 bool m_defaultVariantHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 Aws::String m_id;
181 bool m_idHasBeenSet = false;
182
183 Aws::String m_name;
184 bool m_nameHasBeenSet = false;
185
186 Aws::Utils::DateTime m_updatedAt{};
187 bool m_updatedAtHasBeenSet = false;
188
190 bool m_variantsHasBeenSet = false;
191
192 Aws::String m_version;
193 bool m_versionHasBeenSet = 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