AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeleteSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lex/LexRuntimeServiceRequest.h>
9#include <aws/lex/LexRuntimeService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace LexRuntimeService {
15namespace Model {
16
20 public:
21 AWS_LEXRUNTIMESERVICE_API DeleteSessionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteSession"; }
28
29 AWS_LEXRUNTIMESERVICE_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetBotName() const { return m_botName; }
36 inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
37 template <typename BotNameT = Aws::String>
38 void SetBotName(BotNameT&& value) {
39 m_botNameHasBeenSet = true;
40 m_botName = std::forward<BotNameT>(value);
41 }
42 template <typename BotNameT = Aws::String>
43 DeleteSessionRequest& WithBotName(BotNameT&& value) {
44 SetBotName(std::forward<BotNameT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetBotAlias() const { return m_botAlias; }
54 inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
55 template <typename BotAliasT = Aws::String>
56 void SetBotAlias(BotAliasT&& value) {
57 m_botAliasHasBeenSet = true;
58 m_botAlias = std::forward<BotAliasT>(value);
59 }
60 template <typename BotAliasT = Aws::String>
61 DeleteSessionRequest& WithBotAlias(BotAliasT&& value) {
62 SetBotAlias(std::forward<BotAliasT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetUserId() const { return m_userId; }
72 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
73 template <typename UserIdT = Aws::String>
74 void SetUserId(UserIdT&& value) {
75 m_userIdHasBeenSet = true;
76 m_userId = std::forward<UserIdT>(value);
77 }
78 template <typename UserIdT = Aws::String>
79 DeleteSessionRequest& WithUserId(UserIdT&& value) {
80 SetUserId(std::forward<UserIdT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_botName;
86
87 Aws::String m_botAlias;
88
89 Aws::String m_userId;
90 bool m_botNameHasBeenSet = false;
91 bool m_botAliasHasBeenSet = false;
92 bool m_userIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace LexRuntimeService
97} // namespace Aws
DeleteSessionRequest & WithUserId(UserIdT &&value)
AWS_LEXRUNTIMESERVICE_API DeleteSessionRequest()=default
AWS_LEXRUNTIMESERVICE_API Aws::String SerializePayload() const override
DeleteSessionRequest & WithBotName(BotNameT &&value)
virtual const char * GetServiceRequestName() const override
DeleteSessionRequest & WithBotAlias(BotAliasT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String