AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAIAgentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/AIAgentConfiguration.h>
13#include <aws/qconnect/model/AIAgentType.h>
14#include <aws/qconnect/model/VisibilityStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace QConnect {
20namespace Model {
21
25 public:
26 AWS_QCONNECT_API CreateAIAgentRequest() = 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 "CreateAIAgent"; }
33
34 AWS_QCONNECT_API Aws::String SerializePayload() const override;
35
37
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template <typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) {
48 m_clientTokenHasBeenSet = true;
49 m_clientToken = std::forward<ClientTokenT>(value);
50 }
51 template <typename ClientTokenT = Aws::String>
52 CreateAIAgentRequest& WithClientToken(ClientTokenT&& value) {
53 SetClientToken(std::forward<ClientTokenT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
64 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
65 template <typename AssistantIdT = Aws::String>
66 void SetAssistantId(AssistantIdT&& value) {
67 m_assistantIdHasBeenSet = true;
68 m_assistantId = std::forward<AssistantIdT>(value);
69 }
70 template <typename AssistantIdT = Aws::String>
71 CreateAIAgentRequest& WithAssistantId(AssistantIdT&& value) {
72 SetAssistantId(std::forward<AssistantIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline AIAgentType GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(AIAgentType value) {
102 m_typeHasBeenSet = true;
103 m_type = value;
104 }
106 SetType(value);
107 return *this;
108 }
110
112
115 inline const AIAgentConfiguration& GetConfiguration() const { return m_configuration; }
116 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
117 template <typename ConfigurationT = AIAgentConfiguration>
118 void SetConfiguration(ConfigurationT&& value) {
119 m_configurationHasBeenSet = true;
120 m_configuration = std::forward<ConfigurationT>(value);
121 }
122 template <typename ConfigurationT = AIAgentConfiguration>
123 CreateAIAgentRequest& WithConfiguration(ConfigurationT&& value) {
124 SetConfiguration(std::forward<ConfigurationT>(value));
125 return *this;
126 }
128
130
133 inline VisibilityStatus GetVisibilityStatus() const { return m_visibilityStatus; }
134 inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; }
136 m_visibilityStatusHasBeenSet = true;
137 m_visibilityStatus = value;
138 }
140 SetVisibilityStatus(value);
141 return *this;
142 }
144
146
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 CreateAIAgentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetDescription() const { return m_description; }
174 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
175 template <typename DescriptionT = Aws::String>
176 void SetDescription(DescriptionT&& value) {
177 m_descriptionHasBeenSet = true;
178 m_description = std::forward<DescriptionT>(value);
179 }
180 template <typename DescriptionT = Aws::String>
181 CreateAIAgentRequest& WithDescription(DescriptionT&& value) {
182 SetDescription(std::forward<DescriptionT>(value));
183 return *this;
184 }
186 private:
188
189 Aws::String m_assistantId;
190
191 Aws::String m_name;
192
194
195 AIAgentConfiguration m_configuration;
196
198
200
201 Aws::String m_description;
202 bool m_clientTokenHasBeenSet = true;
203 bool m_assistantIdHasBeenSet = false;
204 bool m_nameHasBeenSet = false;
205 bool m_typeHasBeenSet = false;
206 bool m_configurationHasBeenSet = false;
207 bool m_visibilityStatusHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_descriptionHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace QConnect
214} // namespace Aws
CreateAIAgentRequest & WithClientToken(ClientTokenT &&value)
CreateAIAgentRequest & WithTags(TagsT &&value)
CreateAIAgentRequest & WithName(NameT &&value)
CreateAIAgentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAIAgentRequest & WithAssistantId(AssistantIdT &&value)
AWS_QCONNECT_API CreateAIAgentRequest()=default
CreateAIAgentRequest & WithConfiguration(ConfigurationT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const AIAgentConfiguration & GetConfiguration() const
CreateAIAgentRequest & WithType(AIAgentType value)
CreateAIAgentRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAIAgentRequest & WithVisibilityStatus(VisibilityStatus 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