AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateSessionRequest.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
13#include <utility>
14
15namespace Aws {
16namespace ConnectWisdomService {
17namespace Model {
18
22 public:
23 AWS_CONNECTWISDOMSERVICE_API CreateSessionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
30
31 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
39 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
40 template <typename AssistantIdT = Aws::String>
41 void SetAssistantId(AssistantIdT&& value) {
42 m_assistantIdHasBeenSet = true;
43 m_assistantId = std::forward<AssistantIdT>(value);
44 }
45 template <typename AssistantIdT = Aws::String>
46 CreateSessionRequest& WithAssistantId(AssistantIdT&& value) {
47 SetAssistantId(std::forward<AssistantIdT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetClientToken() const { return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 template <typename ClientTokenT = Aws::String>
63 void SetClientToken(ClientTokenT&& value) {
64 m_clientTokenHasBeenSet = true;
65 m_clientToken = std::forward<ClientTokenT>(value);
66 }
67 template <typename ClientTokenT = Aws::String>
68 CreateSessionRequest& WithClientToken(ClientTokenT&& value) {
69 SetClientToken(std::forward<ClientTokenT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 CreateSessionRequest& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_assistantId;
135
137
138 Aws::String m_description;
139
140 Aws::String m_name;
141
143 bool m_assistantIdHasBeenSet = false;
144 bool m_clientTokenHasBeenSet = true;
145 bool m_descriptionHasBeenSet = false;
146 bool m_nameHasBeenSet = false;
147 bool m_tagsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace ConnectWisdomService
152} // namespace Aws
CreateSessionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECTWISDOMSERVICE_API CreateSessionRequest()=default
CreateSessionRequest & WithAssistantId(AssistantIdT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSessionRequest & WithClientToken(ClientTokenT &&value)
CreateSessionRequest & WithDescription(DescriptionT &&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