AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAssistantRequest.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/AssistantType.h>
13#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QConnect {
19namespace Model {
20
24 public:
25 AWS_QCONNECT_API CreateAssistantRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAssistant"; }
32
33 AWS_QCONNECT_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
51 CreateAssistantRequest& WithClientToken(ClientTokenT&& value) {
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline AssistantType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(AssistantType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 CreateAssistantRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
129 return *this;
130 }
132
134
149 return m_serverSideEncryptionConfiguration;
150 }
151 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
152 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
153 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
154 m_serverSideEncryptionConfigurationHasBeenSet = true;
155 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
156 }
157 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
158 CreateAssistantRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
159 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
160 return *this;
161 }
163 private:
165
166 Aws::String m_name;
167
169
170 Aws::String m_description;
171
173
174 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
175 bool m_clientTokenHasBeenSet = true;
176 bool m_nameHasBeenSet = false;
177 bool m_typeHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_tagsHasBeenSet = false;
180 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace QConnect
185} // namespace Aws
CreateAssistantRequest & WithType(AssistantType value)
CreateAssistantRequest & WithClientToken(ClientTokenT &&value)
CreateAssistantRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QCONNECT_API CreateAssistantRequest()=default
CreateAssistantRequest & WithName(NameT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
CreateAssistantRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateAssistantRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAssistantRequest & WithTags(TagsT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
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