AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSessionDataRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qconnect/model/SessionDataNamespace.h>
12#include <aws/qconnect/model/RuntimeSessionData.h>
13#include <utility>
14
15namespace Aws
16{
17namespace QConnect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_QCONNECT_API UpdateSessionDataRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateSessionData"; }
34
35 AWS_QCONNECT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetAssistantId() const{ return m_assistantId; }
44 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
45 inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; }
46 inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); }
47 inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); }
48 inline UpdateSessionDataRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;}
49 inline UpdateSessionDataRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;}
50 inline UpdateSessionDataRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;}
52
54
57 inline const Aws::Vector<RuntimeSessionData>& GetData() const{ return m_data; }
58 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
59 inline void SetData(const Aws::Vector<RuntimeSessionData>& value) { m_dataHasBeenSet = true; m_data = value; }
60 inline void SetData(Aws::Vector<RuntimeSessionData>&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
61 inline UpdateSessionDataRequest& WithData(const Aws::Vector<RuntimeSessionData>& value) { SetData(value); return *this;}
62 inline UpdateSessionDataRequest& WithData(Aws::Vector<RuntimeSessionData>&& value) { SetData(std::move(value)); return *this;}
63 inline UpdateSessionDataRequest& AddData(const RuntimeSessionData& value) { m_dataHasBeenSet = true; m_data.push_back(value); return *this; }
64 inline UpdateSessionDataRequest& AddData(RuntimeSessionData&& value) { m_dataHasBeenSet = true; m_data.push_back(std::move(value)); return *this; }
66
68
72 inline const SessionDataNamespace& GetNamespace() const{ return m_namespace; }
73 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
74 inline void SetNamespace(const SessionDataNamespace& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
75 inline void SetNamespace(SessionDataNamespace&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
76 inline UpdateSessionDataRequest& WithNamespace(const SessionDataNamespace& value) { SetNamespace(value); return *this;}
77 inline UpdateSessionDataRequest& WithNamespace(SessionDataNamespace&& value) { SetNamespace(std::move(value)); return *this;}
79
81
85 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
86 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
87 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
88 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
89 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
90 inline UpdateSessionDataRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
91 inline UpdateSessionDataRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
92 inline UpdateSessionDataRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
94 private:
95
96 Aws::String m_assistantId;
97 bool m_assistantIdHasBeenSet = false;
98
100 bool m_dataHasBeenSet = false;
101
102 SessionDataNamespace m_namespace;
103 bool m_namespaceHasBeenSet = false;
104
105 Aws::String m_sessionId;
106 bool m_sessionIdHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace QConnect
111} // namespace Aws
UpdateSessionDataRequest & WithNamespace(const SessionDataNamespace &value)
UpdateSessionDataRequest & WithAssistantId(Aws::String &&value)
const Aws::Vector< RuntimeSessionData > & GetData() const
void SetData(const Aws::Vector< RuntimeSessionData > &value)
void SetNamespace(const SessionDataNamespace &value)
virtual const char * GetServiceRequestName() const override
UpdateSessionDataRequest & WithData(Aws::Vector< RuntimeSessionData > &&value)
UpdateSessionDataRequest & WithAssistantId(const Aws::String &value)
UpdateSessionDataRequest & WithAssistantId(const char *value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
UpdateSessionDataRequest & WithSessionId(const Aws::String &value)
const SessionDataNamespace & GetNamespace() const
void SetData(Aws::Vector< RuntimeSessionData > &&value)
UpdateSessionDataRequest & WithNamespace(SessionDataNamespace &&value)
UpdateSessionDataRequest & AddData(const RuntimeSessionData &value)
UpdateSessionDataRequest & WithSessionId(const char *value)
UpdateSessionDataRequest & AddData(RuntimeSessionData &&value)
UpdateSessionDataRequest & WithData(const Aws::Vector< RuntimeSessionData > &value)
UpdateSessionDataRequest & WithSessionId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector