AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GetSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ConnectWisdomService {
15namespace Model {
16
20 public:
21 AWS_CONNECTWISDOMSERVICE_API GetSessionRequest() = 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 "GetSession"; }
28
29 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
37 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
38 template <typename AssistantIdT = Aws::String>
39 void SetAssistantId(AssistantIdT&& value) {
40 m_assistantIdHasBeenSet = true;
41 m_assistantId = std::forward<AssistantIdT>(value);
42 }
43 template <typename AssistantIdT = Aws::String>
44 GetSessionRequest& WithAssistantId(AssistantIdT&& value) {
45 SetAssistantId(std::forward<AssistantIdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetSessionId() const { return m_sessionId; }
56 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
57 template <typename SessionIdT = Aws::String>
58 void SetSessionId(SessionIdT&& value) {
59 m_sessionIdHasBeenSet = true;
60 m_sessionId = std::forward<SessionIdT>(value);
61 }
62 template <typename SessionIdT = Aws::String>
63 GetSessionRequest& WithSessionId(SessionIdT&& value) {
64 SetSessionId(std::forward<SessionIdT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_assistantId;
70
71 Aws::String m_sessionId;
72 bool m_assistantIdHasBeenSet = false;
73 bool m_sessionIdHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace ConnectWisdomService
78} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
GetSessionRequest & WithAssistantId(AssistantIdT &&value)
virtual const char * GetServiceRequestName() const override
GetSessionRequest & WithSessionId(SessionIdT &&value)
AWS_CONNECTWISDOMSERVICE_API GetSessionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String