AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCustomerEncryptionKeyArn(const Aws::String& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = value; }
44 inline void SetCustomerEncryptionKeyArn(Aws::String&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::move(value); }
45 inline void SetCustomerEncryptionKeyArn(const char* value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn.assign(value); }
48 inline UpdatePromptRequest& WithCustomerEncryptionKeyArn(const char* value) { SetCustomerEncryptionKeyArn(value); return *this;}
50
52
58 inline const Aws::String& GetDefaultVariant() const{ return m_defaultVariant; }
59 inline bool DefaultVariantHasBeenSet() const { return m_defaultVariantHasBeenSet; }
60 inline void SetDefaultVariant(const Aws::String& value) { m_defaultVariantHasBeenSet = true; m_defaultVariant = value; }
61 inline void SetDefaultVariant(Aws::String&& value) { m_defaultVariantHasBeenSet = true; m_defaultVariant = std::move(value); }
62 inline void SetDefaultVariant(const char* value) { m_defaultVariantHasBeenSet = true; m_defaultVariant.assign(value); }
63 inline UpdatePromptRequest& WithDefaultVariant(const Aws::String& value) { SetDefaultVariant(value); return *this;}
64 inline UpdatePromptRequest& WithDefaultVariant(Aws::String&& value) { SetDefaultVariant(std::move(value)); return *this;}
65 inline UpdatePromptRequest& WithDefaultVariant(const char* value) { SetDefaultVariant(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline UpdatePromptRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline UpdatePromptRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline UpdatePromptRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline UpdatePromptRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline UpdatePromptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline UpdatePromptRequest& WithName(const char* value) { SetName(value); return *this;}
95
97
100 inline const Aws::String& GetPromptIdentifier() const{ return m_promptIdentifier; }
101 inline bool PromptIdentifierHasBeenSet() const { return m_promptIdentifierHasBeenSet; }
102 inline void SetPromptIdentifier(const Aws::String& value) { m_promptIdentifierHasBeenSet = true; m_promptIdentifier = value; }
103 inline void SetPromptIdentifier(Aws::String&& value) { m_promptIdentifierHasBeenSet = true; m_promptIdentifier = std::move(value); }
104 inline void SetPromptIdentifier(const char* value) { m_promptIdentifierHasBeenSet = true; m_promptIdentifier.assign(value); }
105 inline UpdatePromptRequest& WithPromptIdentifier(const Aws::String& value) { SetPromptIdentifier(value); return *this;}
106 inline UpdatePromptRequest& WithPromptIdentifier(Aws::String&& value) { SetPromptIdentifier(std::move(value)); return *this;}
107 inline UpdatePromptRequest& WithPromptIdentifier(const char* value) { SetPromptIdentifier(value); return *this;}
109
111
114 inline const Aws::Vector<PromptVariant>& GetVariants() const{ return m_variants; }
115 inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; }
116 inline void SetVariants(const Aws::Vector<PromptVariant>& value) { m_variantsHasBeenSet = true; m_variants = value; }
117 inline void SetVariants(Aws::Vector<PromptVariant>&& value) { m_variantsHasBeenSet = true; m_variants = std::move(value); }
118 inline UpdatePromptRequest& WithVariants(const Aws::Vector<PromptVariant>& value) { SetVariants(value); return *this;}
119 inline UpdatePromptRequest& WithVariants(Aws::Vector<PromptVariant>&& value) { SetVariants(std::move(value)); return *this;}
120 inline UpdatePromptRequest& AddVariants(const PromptVariant& value) { m_variantsHasBeenSet = true; m_variants.push_back(value); return *this; }
121 inline UpdatePromptRequest& AddVariants(PromptVariant&& value) { m_variantsHasBeenSet = true; m_variants.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_customerEncryptionKeyArn;
126 bool m_customerEncryptionKeyArnHasBeenSet = false;
127
128 Aws::String m_defaultVariant;
129 bool m_defaultVariantHasBeenSet = false;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Aws::String m_promptIdentifier;
138 bool m_promptIdentifierHasBeenSet = false;
139
141 bool m_variantsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace BedrockAgent
146} // namespace Aws
UpdatePromptRequest & WithDefaultVariant(const char *value)
virtual const char * GetServiceRequestName() const override
UpdatePromptRequest & WithDefaultVariant(Aws::String &&value)
UpdatePromptRequest & WithName(const char *value)
void SetCustomerEncryptionKeyArn(const Aws::String &value)
UpdatePromptRequest & WithName(Aws::String &&value)
UpdatePromptRequest & WithPromptIdentifier(const Aws::String &value)
UpdatePromptRequest & WithDescription(const char *value)
UpdatePromptRequest & WithVariants(const Aws::Vector< PromptVariant > &value)
UpdatePromptRequest & WithVariants(Aws::Vector< PromptVariant > &&value)
UpdatePromptRequest & WithDescription(const Aws::String &value)
UpdatePromptRequest & WithName(const Aws::String &value)
UpdatePromptRequest & WithPromptIdentifier(const char *value)
UpdatePromptRequest & WithDescription(Aws::String &&value)
UpdatePromptRequest & WithCustomerEncryptionKeyArn(const Aws::String &value)
UpdatePromptRequest & AddVariants(const PromptVariant &value)
void SetPromptIdentifier(const Aws::String &value)
UpdatePromptRequest & WithDefaultVariant(const Aws::String &value)
const Aws::Vector< PromptVariant > & GetVariants() const
UpdatePromptRequest & WithCustomerEncryptionKeyArn(Aws::String &&value)
void SetVariants(const Aws::Vector< PromptVariant > &value)
void SetDefaultVariant(const Aws::String &value)
UpdatePromptRequest & WithCustomerEncryptionKeyArn(const char *value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
const Aws::String & GetCustomerEncryptionKeyArn() const
UpdatePromptRequest & WithPromptIdentifier(Aws::String &&value)
UpdatePromptRequest & AddVariants(PromptVariant &&value)
void SetVariants(Aws::Vector< PromptVariant > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector