AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSessionRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace ConnectWisdomService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECTWISDOMSERVICE_API CreateSessionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
33
34 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetAssistantId() const{ return m_assistantId; }
43 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
44 inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; }
45 inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); }
46 inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); }
47 inline CreateSessionRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;}
48 inline CreateSessionRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;}
49 inline CreateSessionRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;}
51
53
60 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
63 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
64 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
65 inline CreateSessionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
66 inline CreateSessionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
67 inline CreateSessionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline CreateSessionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline CreateSessionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline CreateSessionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline CreateSessionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline CreateSessionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline CreateSessionRequest& WithName(const char* value) { SetName(value); return *this;}
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline CreateSessionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
107 inline CreateSessionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
108 inline CreateSessionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
109 inline CreateSessionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
110 inline CreateSessionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline CreateSessionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
112 inline CreateSessionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
113 inline CreateSessionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
114 inline CreateSessionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
116 private:
117
118 Aws::String m_assistantId;
119 bool m_assistantIdHasBeenSet = false;
120
121 Aws::String m_clientToken;
122 bool m_clientTokenHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
131 bool m_tagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace ConnectWisdomService
136} // namespace Aws
CreateSessionRequest & WithName(const char *value)
CreateSessionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSessionRequest & WithDescription(Aws::String &&value)
CreateSessionRequest & WithClientToken(const Aws::String &value)
CreateSessionRequest & AddTags(const char *key, const char *value)
CreateSessionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSessionRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateSessionRequest & WithClientToken(const char *value)
CreateSessionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & WithName(const Aws::String &value)
CreateSessionRequest & WithAssistantId(Aws::String &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
CreateSessionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSessionRequest & WithDescription(const Aws::String &value)
CreateSessionRequest & WithAssistantId(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & WithDescription(const char *value)
CreateSessionRequest & AddTags(const char *key, Aws::String &&value)
CreateSessionRequest & WithAssistantId(const char *value)
CreateSessionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSessionRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECTWISDOMSERVICE_API CreateSessionRequest()
CreateSessionRequest & AddTags(Aws::String &&key, const char *value)
CreateSessionRequest & WithClientToken(Aws::String &&value)
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