AWS SDK for C++  1.9.129
AWS SDK for C++
DeleteSessionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace LexRuntimeService
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteSession"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetBotName() const{ return m_botName; }
39 
43  inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
44 
48  inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
49 
53  inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
54 
58  inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
59 
63  inline DeleteSessionRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
64 
68  inline DeleteSessionRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
69 
73  inline DeleteSessionRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
74 
75 
79  inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
80 
84  inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
85 
89  inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
90 
94  inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
95 
99  inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
100 
104  inline DeleteSessionRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
105 
109  inline DeleteSessionRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
110 
114  inline DeleteSessionRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
115 
116 
120  inline const Aws::String& GetUserId() const{ return m_userId; }
121 
125  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
126 
130  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
131 
135  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
136 
140  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
141 
145  inline DeleteSessionRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
146 
150  inline DeleteSessionRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
151 
155  inline DeleteSessionRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
156 
157  private:
158 
159  Aws::String m_botName;
160  bool m_botNameHasBeenSet;
161 
162  Aws::String m_botAlias;
163  bool m_botAliasHasBeenSet;
164 
165  Aws::String m_userId;
166  bool m_userIdHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace LexRuntimeService
171 } // namespace Aws
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithBotAlias
DeleteSessionRequest & WithBotAlias(const char *value)
Definition: DeleteSessionRequest.h:114
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithBotAlias
DeleteSessionRequest & WithBotAlias(const Aws::String &value)
Definition: DeleteSessionRequest.h:104
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetBotName
void SetBotName(const Aws::String &value)
Definition: DeleteSessionRequest.h:48
Aws::LexRuntimeService::LexRuntimeServiceRequest
Definition: LexRuntimeServiceRequest.h:18
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithBotName
DeleteSessionRequest & WithBotName(const Aws::String &value)
Definition: DeleteSessionRequest.h:63
LexRuntimeServiceRequest.h
Aws::LexRuntimeService::Model::DeleteSessionRequest::BotNameHasBeenSet
bool BotNameHasBeenSet() const
Definition: DeleteSessionRequest.h:43
Aws::LexRuntimeService::Model::DeleteSessionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetBotAlias
void SetBotAlias(const Aws::String &value)
Definition: DeleteSessionRequest.h:89
Aws::LexRuntimeService::Model::DeleteSessionRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: DeleteSessionRequest.h:125
AWS_LEXRUNTIMESERVICE_API
#define AWS_LEXRUNTIMESERVICE_API
Definition: LexRuntimeService_EXPORTS.h:28
Aws::LexRuntimeService::Model::DeleteSessionRequest
Definition: DeleteSessionRequest.h:22
Aws::LexRuntimeService::Model::DeleteSessionRequest::GetUserId
const Aws::String & GetUserId() const
Definition: DeleteSessionRequest.h:120
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetBotName
void SetBotName(Aws::String &&value)
Definition: DeleteSessionRequest.h:53
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: DeleteSessionRequest.h:135
LexRuntimeService_EXPORTS.h
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetBotAlias
void SetBotAlias(const char *value)
Definition: DeleteSessionRequest.h:99
Aws::LexRuntimeService::Model::DeleteSessionRequest::GetBotAlias
const Aws::String & GetBotAlias() const
Definition: DeleteSessionRequest.h:79
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetBotAlias
void SetBotAlias(Aws::String &&value)
Definition: DeleteSessionRequest.h:94
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithBotAlias
DeleteSessionRequest & WithBotAlias(Aws::String &&value)
Definition: DeleteSessionRequest.h:109
Aws::LexRuntimeService::Model::DeleteSessionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteSessionRequest.h:30
AWSString.h
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithBotName
DeleteSessionRequest & WithBotName(Aws::String &&value)
Definition: DeleteSessionRequest.h:68
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetBotName
void SetBotName(const char *value)
Definition: DeleteSessionRequest.h:58
Aws::LexRuntimeService::Model::DeleteSessionRequest::GetBotName
const Aws::String & GetBotName() const
Definition: DeleteSessionRequest.h:38
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithBotName
DeleteSessionRequest & WithBotName(const char *value)
Definition: DeleteSessionRequest.h:73
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithUserId
DeleteSessionRequest & WithUserId(const char *value)
Definition: DeleteSessionRequest.h:155
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetUserId
void SetUserId(const char *value)
Definition: DeleteSessionRequest.h:140
Aws::LexRuntimeService::Model::DeleteSessionRequest::BotAliasHasBeenSet
bool BotAliasHasBeenSet() const
Definition: DeleteSessionRequest.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexRuntimeService::Model::DeleteSessionRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: DeleteSessionRequest.h:130
Aws::LexRuntimeService::Model::DeleteSessionRequest::DeleteSessionRequest
DeleteSessionRequest()
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithUserId
DeleteSessionRequest & WithUserId(Aws::String &&value)
Definition: DeleteSessionRequest.h:150
Aws::LexRuntimeService::Model::DeleteSessionRequest::WithUserId
DeleteSessionRequest & WithUserId(const Aws::String &value)
Definition: DeleteSessionRequest.h:145