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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/model/ServerSideEncryptionConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/wisdom/model/AssistantType.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace ConnectWisdomService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_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& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateAssistantRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 CreateAssistantRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
93 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
94 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
95 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
96 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
97 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
98 CreateAssistantRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 CreateAssistantRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateAssistantRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
114 }
116
118
121 inline AssistantType GetType() const { return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 inline void SetType(AssistantType value) { m_typeHasBeenSet = true; m_type = value; }
124 inline CreateAssistantRequest& WithType(AssistantType value) { SetType(value); return *this;}
126 private:
127
129 bool m_clientTokenHasBeenSet = true;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
138 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
139
141 bool m_tagsHasBeenSet = false;
142
144 bool m_typeHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ConnectWisdomService
149} // 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