AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAssistantRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/AssistantType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace QConnect
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_QCONNECT_API CreateAssistantRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAssistant"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template<typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
51 template<typename ClientTokenT = Aws::String>
52 CreateAssistantRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateAssistantRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline AssistantType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(AssistantType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline CreateAssistantRequest& WithType(AssistantType value) { SetType(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 CreateAssistantRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 CreateAssistantRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
100 CreateAssistantRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
101 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
102 }
104
106
120 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
121 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
122 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
123 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
124 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
125 CreateAssistantRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
127 private:
128
130 bool m_clientTokenHasBeenSet = true;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
136 bool m_typeHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
142 bool m_tagsHasBeenSet = false;
143
144 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
145 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace QConnect
150} // 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