AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdatePromptRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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{
16namespace BedrockAgent
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BEDROCKAGENT_API UpdatePromptRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdatePrompt"; }
33
34 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
42 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
43 template<typename CustomerEncryptionKeyArnT = Aws::String>
44 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
45 template<typename CustomerEncryptionKeyArnT = Aws::String>
46 UpdatePromptRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
48
50
56 inline const Aws::String& GetDefaultVariant() const { return m_defaultVariant; }
57 inline bool DefaultVariantHasBeenSet() const { return m_defaultVariantHasBeenSet; }
58 template<typename DefaultVariantT = Aws::String>
59 void SetDefaultVariant(DefaultVariantT&& value) { m_defaultVariantHasBeenSet = true; m_defaultVariant = std::forward<DefaultVariantT>(value); }
60 template<typename DefaultVariantT = Aws::String>
61 UpdatePromptRequest& WithDefaultVariant(DefaultVariantT&& value) { SetDefaultVariant(std::forward<DefaultVariantT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 UpdatePromptRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template<typename NameT = Aws::String>
83 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
84 template<typename NameT = Aws::String>
85 UpdatePromptRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
87
89
92 inline const Aws::String& GetPromptIdentifier() const { return m_promptIdentifier; }
93 inline bool PromptIdentifierHasBeenSet() const { return m_promptIdentifierHasBeenSet; }
94 template<typename PromptIdentifierT = Aws::String>
95 void SetPromptIdentifier(PromptIdentifierT&& value) { m_promptIdentifierHasBeenSet = true; m_promptIdentifier = std::forward<PromptIdentifierT>(value); }
96 template<typename PromptIdentifierT = Aws::String>
97 UpdatePromptRequest& WithPromptIdentifier(PromptIdentifierT&& value) { SetPromptIdentifier(std::forward<PromptIdentifierT>(value)); return *this;}
99
101
104 inline const Aws::Vector<PromptVariant>& GetVariants() const { return m_variants; }
105 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
106 template<typename VariantsT = Aws::Vector<PromptVariant>>
107 void SetVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants = std::forward<VariantsT>(value); }
108 template<typename VariantsT = Aws::Vector<PromptVariant>>
109 UpdatePromptRequest& WithVariants(VariantsT&& value) { SetVariants(std::forward<VariantsT>(value)); return *this;}
110 template<typename VariantsT = PromptVariant>
111 UpdatePromptRequest& AddVariants(VariantsT&& value) { m_variantsHasBeenSet = true; m_variants.emplace_back(std::forward<VariantsT>(value)); return *this; }
113 private:
114
115 Aws::String m_customerEncryptionKeyArn;
116 bool m_customerEncryptionKeyArnHasBeenSet = false;
117
118 Aws::String m_defaultVariant;
119 bool m_defaultVariantHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_promptIdentifier;
128 bool m_promptIdentifierHasBeenSet = false;
129
131 bool m_variantsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace BedrockAgent
136} // 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