AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreatePromptVersionRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BedrockAgent {
17namespace Model {
18
22 public:
23 AWS_BEDROCKAGENT_API CreatePromptVersionRequest() = 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 "CreatePromptVersion"; }
30
31 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetPromptIdentifier() const { return m_promptIdentifier; }
38 inline bool PromptIdentifierHasBeenSet() const { return m_promptIdentifierHasBeenSet; }
39 template <typename PromptIdentifierT = Aws::String>
40 void SetPromptIdentifier(PromptIdentifierT&& value) {
41 m_promptIdentifierHasBeenSet = true;
42 m_promptIdentifier = std::forward<PromptIdentifierT>(value);
43 }
44 template <typename PromptIdentifierT = Aws::String>
46 SetPromptIdentifier(std::forward<PromptIdentifierT>(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>
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
77 inline const Aws::String& GetClientToken() const { return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 template <typename ClientTokenT = Aws::String>
80 void SetClientToken(ClientTokenT&& value) {
81 m_clientTokenHasBeenSet = true;
82 m_clientToken = std::forward<ClientTokenT>(value);
83 }
84 template <typename ClientTokenT = Aws::String>
86 SetClientToken(std::forward<ClientTokenT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
111 CreatePromptVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_promptIdentifier;
119
120 Aws::String m_description;
121
123
125 bool m_promptIdentifierHasBeenSet = false;
126 bool m_descriptionHasBeenSet = false;
127 bool m_clientTokenHasBeenSet = true;
128 bool m_tagsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace BedrockAgent
133} // namespace Aws
CreatePromptVersionRequest & WithClientToken(ClientTokenT &&value)
AWS_BEDROCKAGENT_API CreatePromptVersionRequest()=default
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreatePromptVersionRequest & WithPromptIdentifier(PromptIdentifierT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePromptVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePromptVersionRequest & WithTags(TagsT &&value)
CreatePromptVersionRequest & WithDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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