AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdatePromptRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/PromptVariant.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BedrockAgent {
17namespace Model {
18
22 public:
23 AWS_BEDROCKAGENT_API UpdatePromptRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdatePrompt"; }
30
31 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
45 UpdatePromptRequest& WithName(NameT&& value) {
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 UpdatePromptRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
74 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
75 template <typename CustomerEncryptionKeyArnT = Aws::String>
76 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
77 m_customerEncryptionKeyArnHasBeenSet = true;
78 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
79 }
80 template <typename CustomerEncryptionKeyArnT = Aws::String>
81 UpdatePromptRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
82 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
83 return *this;
84 }
86
88
94 inline const Aws::String& GetDefaultVariant() const { return m_defaultVariant; }
95 inline bool DefaultVariantHasBeenSet() const { return m_defaultVariantHasBeenSet; }
96 template <typename DefaultVariantT = Aws::String>
97 void SetDefaultVariant(DefaultVariantT&& value) {
98 m_defaultVariantHasBeenSet = true;
99 m_defaultVariant = std::forward<DefaultVariantT>(value);
100 }
101 template <typename DefaultVariantT = Aws::String>
102 UpdatePromptRequest& WithDefaultVariant(DefaultVariantT&& value) {
103 SetDefaultVariant(std::forward<DefaultVariantT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<PromptVariant>& GetVariants() const { return m_variants; }
113 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
114 template <typename VariantsT = Aws::Vector<PromptVariant>>
115 void SetVariants(VariantsT&& value) {
116 m_variantsHasBeenSet = true;
117 m_variants = std::forward<VariantsT>(value);
118 }
119 template <typename VariantsT = Aws::Vector<PromptVariant>>
120 UpdatePromptRequest& WithVariants(VariantsT&& value) {
121 SetVariants(std::forward<VariantsT>(value));
122 return *this;
123 }
124 template <typename VariantsT = PromptVariant>
125 UpdatePromptRequest& AddVariants(VariantsT&& value) {
126 m_variantsHasBeenSet = true;
127 m_variants.emplace_back(std::forward<VariantsT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetPromptIdentifier() const { return m_promptIdentifier; }
137 inline bool PromptIdentifierHasBeenSet() const { return m_promptIdentifierHasBeenSet; }
138 template <typename PromptIdentifierT = Aws::String>
139 void SetPromptIdentifier(PromptIdentifierT&& value) {
140 m_promptIdentifierHasBeenSet = true;
141 m_promptIdentifier = std::forward<PromptIdentifierT>(value);
142 }
143 template <typename PromptIdentifierT = Aws::String>
144 UpdatePromptRequest& WithPromptIdentifier(PromptIdentifierT&& value) {
145 SetPromptIdentifier(std::forward<PromptIdentifierT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_name;
151
152 Aws::String m_description;
153
154 Aws::String m_customerEncryptionKeyArn;
155
156 Aws::String m_defaultVariant;
157
159
160 Aws::String m_promptIdentifier;
161 bool m_nameHasBeenSet = false;
162 bool m_descriptionHasBeenSet = false;
163 bool m_customerEncryptionKeyArnHasBeenSet = false;
164 bool m_defaultVariantHasBeenSet = false;
165 bool m_variantsHasBeenSet = false;
166 bool m_promptIdentifierHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace BedrockAgent
171} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdatePromptRequest & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
UpdatePromptRequest & WithName(NameT &&value)
UpdatePromptRequest & WithDefaultVariant(DefaultVariantT &&value)
AWS_BEDROCKAGENT_API UpdatePromptRequest()=default
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
const Aws::Vector< PromptVariant > & GetVariants() const
UpdatePromptRequest & WithVariants(VariantsT &&value)
UpdatePromptRequest & AddVariants(VariantsT &&value)
UpdatePromptRequest & WithPromptIdentifier(PromptIdentifierT &&value)
void SetPromptIdentifier(PromptIdentifierT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdatePromptRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetCustomerEncryptionKeyArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector