AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DeleteSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-runtime/LexRuntimeV2Request.h>
9#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace LexRuntimeV2 {
15namespace Model {
16
20 public:
21 AWS_LEXRUNTIMEV2_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_LEXRUNTIMEV2_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetBotId() const { return m_botId; }
36 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
37 template <typename BotIdT = Aws::String>
38 void SetBotId(BotIdT&& value) {
39 m_botIdHasBeenSet = true;
40 m_botId = std::forward<BotIdT>(value);
41 }
42 template <typename BotIdT = Aws::String>
44 SetBotId(std::forward<BotIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
54 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
55 template <typename BotAliasIdT = Aws::String>
56 void SetBotAliasId(BotAliasIdT&& value) {
57 m_botAliasIdHasBeenSet = true;
58 m_botAliasId = std::forward<BotAliasIdT>(value);
59 }
60 template <typename BotAliasIdT = Aws::String>
61 DeleteSessionRequest& WithBotAliasId(BotAliasIdT&& value) {
62 SetBotAliasId(std::forward<BotAliasIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetLocaleId() const { return m_localeId; }
72 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
73 template <typename LocaleIdT = Aws::String>
74 void SetLocaleId(LocaleIdT&& value) {
75 m_localeIdHasBeenSet = true;
76 m_localeId = std::forward<LocaleIdT>(value);
77 }
78 template <typename LocaleIdT = Aws::String>
79 DeleteSessionRequest& WithLocaleId(LocaleIdT&& value) {
80 SetLocaleId(std::forward<LocaleIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetSessionId() const { return m_sessionId; }
90 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
91 template <typename SessionIdT = Aws::String>
92 void SetSessionId(SessionIdT&& value) {
93 m_sessionIdHasBeenSet = true;
94 m_sessionId = std::forward<SessionIdT>(value);
95 }
96 template <typename SessionIdT = Aws::String>
97 DeleteSessionRequest& WithSessionId(SessionIdT&& value) {
98 SetSessionId(std::forward<SessionIdT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_botId;
104
105 Aws::String m_botAliasId;
106
107 Aws::String m_localeId;
108
109 Aws::String m_sessionId;
110 bool m_botIdHasBeenSet = false;
111 bool m_botAliasIdHasBeenSet = false;
112 bool m_localeIdHasBeenSet = false;
113 bool m_sessionIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace LexRuntimeV2
118} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_LEXRUNTIMEV2_API DeleteSessionRequest()=default
AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override
DeleteSessionRequest & WithBotAliasId(BotAliasIdT &&value)
DeleteSessionRequest & WithBotId(BotIdT &&value)
DeleteSessionRequest & WithSessionId(SessionIdT &&value)
DeleteSessionRequest & WithLocaleId(LocaleIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String