AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/wisdom/ConnectWisdomServiceRequest.h>
11#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
12#include <aws/wisdom/model/AssistantType.h>
13#include <aws/wisdom/model/ServerSideEncryptionConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ConnectWisdomService {
19namespace Model {
20
24 public:
25 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_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& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 CreateAssistantRequest& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
108 return m_serverSideEncryptionConfiguration;
109 }
110 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
111 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
112 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
113 m_serverSideEncryptionConfigurationHasBeenSet = true;
114 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
115 }
116 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
117 CreateAssistantRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
118 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 CreateAssistantRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
143 return *this;
144 }
146
148
151 inline AssistantType GetType() const { return m_type; }
152 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
153 inline void SetType(AssistantType value) {
154 m_typeHasBeenSet = true;
155 m_type = value;
156 }
158 SetType(value);
159 return *this;
160 }
162 private:
164
165 Aws::String m_description;
166
167 Aws::String m_name;
168
169 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
170
172
174 bool m_clientTokenHasBeenSet = true;
175 bool m_descriptionHasBeenSet = false;
176 bool m_nameHasBeenSet = false;
177 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
178 bool m_tagsHasBeenSet = false;
179 bool m_typeHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace ConnectWisdomService
184} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
CreateAssistantRequest & WithDescription(DescriptionT &&value)
CreateAssistantRequest & WithType(AssistantType value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
CreateAssistantRequest & WithClientToken(ClientTokenT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECTWISDOMSERVICE_API CreateAssistantRequest()=default
CreateAssistantRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAssistantRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&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