AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePromptVersionRequest.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/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace BedrockAgent
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BEDROCKAGENT_API CreatePromptVersionRequest();
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 "CreatePromptVersion"; }
33
34 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreatePromptVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreatePromptVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreatePromptVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreatePromptVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreatePromptVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreatePromptVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const Aws::String& GetPromptIdentifier() const{ return m_promptIdentifier; }
74 inline bool PromptIdentifierHasBeenSet() const { return m_promptIdentifierHasBeenSet; }
75 inline void SetPromptIdentifier(const Aws::String& value) { m_promptIdentifierHasBeenSet = true; m_promptIdentifier = value; }
76 inline void SetPromptIdentifier(Aws::String&& value) { m_promptIdentifierHasBeenSet = true; m_promptIdentifier = std::move(value); }
77 inline void SetPromptIdentifier(const char* value) { m_promptIdentifierHasBeenSet = true; m_promptIdentifier.assign(value); }
79 inline CreatePromptVersionRequest& WithPromptIdentifier(Aws::String&& value) { SetPromptIdentifier(std::move(value)); return *this;}
80 inline CreatePromptVersionRequest& WithPromptIdentifier(const char* value) { SetPromptIdentifier(value); return *this;}
82
84
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreatePromptVersionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
96 inline CreatePromptVersionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
97 inline CreatePromptVersionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
98 inline CreatePromptVersionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline CreatePromptVersionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
100 inline CreatePromptVersionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
101 inline CreatePromptVersionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
102 inline CreatePromptVersionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 private:
105
106 Aws::String m_clientToken;
107 bool m_clientTokenHasBeenSet = false;
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 Aws::String m_promptIdentifier;
113 bool m_promptIdentifierHasBeenSet = false;
114
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace BedrockAgent
121} // namespace Aws
CreatePromptVersionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreatePromptVersionRequest & WithDescription(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePromptVersionRequest & WithDescription(const char *value)
CreatePromptVersionRequest & WithDescription(const Aws::String &value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreatePromptVersionRequest & WithPromptIdentifier(const char *value)
CreatePromptVersionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePromptVersionRequest & WithClientToken(const Aws::String &value)
CreatePromptVersionRequest & WithPromptIdentifier(Aws::String &&value)
CreatePromptVersionRequest & WithPromptIdentifier(const Aws::String &value)
CreatePromptVersionRequest & WithClientToken(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePromptVersionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePromptVersionRequest & AddTags(const char *key, Aws::String &&value)
CreatePromptVersionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreatePromptVersionRequest & AddTags(const char *key, const char *value)
CreatePromptVersionRequest & AddTags(Aws::String &&key, const char *value)
CreatePromptVersionRequest & WithClientToken(Aws::String &&value)
CreatePromptVersionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreatePromptVersionRequest & AddTags(const Aws::String &key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String