AWS SDK for C++  1.8.71
AWS SDK for C++
GetSessionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace LexRuntimeService
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "GetSession"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetBotName() const{ return m_botName; }
45 
49  inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
50 
54  inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
55 
59  inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
60 
64  inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
65 
69  inline GetSessionRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
70 
74  inline GetSessionRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
75 
79  inline GetSessionRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
80 
81 
85  inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
86 
90  inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
91 
95  inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
96 
100  inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
101 
105  inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
106 
110  inline GetSessionRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
111 
115  inline GetSessionRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
116 
120  inline GetSessionRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
121 
122 
127  inline const Aws::String& GetUserId() const{ return m_userId; }
128 
133  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
134 
139  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
140 
145  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
146 
151  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
152 
157  inline GetSessionRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
158 
163  inline GetSessionRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
164 
169  inline GetSessionRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
170 
171 
178  inline const Aws::String& GetCheckpointLabelFilter() const{ return m_checkpointLabelFilter; }
179 
186  inline bool CheckpointLabelFilterHasBeenSet() const { return m_checkpointLabelFilterHasBeenSet; }
187 
194  inline void SetCheckpointLabelFilter(const Aws::String& value) { m_checkpointLabelFilterHasBeenSet = true; m_checkpointLabelFilter = value; }
195 
202  inline void SetCheckpointLabelFilter(Aws::String&& value) { m_checkpointLabelFilterHasBeenSet = true; m_checkpointLabelFilter = std::move(value); }
203 
210  inline void SetCheckpointLabelFilter(const char* value) { m_checkpointLabelFilterHasBeenSet = true; m_checkpointLabelFilter.assign(value); }
211 
218  inline GetSessionRequest& WithCheckpointLabelFilter(const Aws::String& value) { SetCheckpointLabelFilter(value); return *this;}
219 
226  inline GetSessionRequest& WithCheckpointLabelFilter(Aws::String&& value) { SetCheckpointLabelFilter(std::move(value)); return *this;}
227 
234  inline GetSessionRequest& WithCheckpointLabelFilter(const char* value) { SetCheckpointLabelFilter(value); return *this;}
235 
236  private:
237 
238  Aws::String m_botName;
239  bool m_botNameHasBeenSet;
240 
241  Aws::String m_botAlias;
242  bool m_botAliasHasBeenSet;
243 
244  Aws::String m_userId;
245  bool m_userIdHasBeenSet;
246 
247  Aws::String m_checkpointLabelFilter;
248  bool m_checkpointLabelFilterHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace LexRuntimeService
253 } // namespace Aws
#define AWS_LEXRUNTIMESERVICE_API
void SetCheckpointLabelFilter(const Aws::String &value)
GetSessionRequest & WithBotName(const Aws::String &value)
GetSessionRequest & WithBotAlias(const char *value)
GetSessionRequest & WithBotName(Aws::String &&value)
GetSessionRequest & WithUserId(const Aws::String &value)
GetSessionRequest & WithCheckpointLabelFilter(const char *value)
GetSessionRequest & WithBotName(const char *value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetSessionRequest & WithBotAlias(Aws::String &&value)
GetSessionRequest & WithCheckpointLabelFilter(const Aws::String &value)
GetSessionRequest & WithCheckpointLabelFilter(Aws::String &&value)
GetSessionRequest & WithUserId(const char *value)
GetSessionRequest & WithUserId(Aws::String &&value)
GetSessionRequest & WithBotAlias(const Aws::String &value)