AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
StartSessionRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/athena/model/EngineConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Athena {
16namespace Model {
17
21 public:
22 AWS_ATHENA_API StartSessionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "StartSession"; }
29
30 AWS_ATHENA_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetDescription() const { return m_description; }
39 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
40 template <typename DescriptionT = Aws::String>
41 void SetDescription(DescriptionT&& value) {
42 m_descriptionHasBeenSet = true;
43 m_description = std::forward<DescriptionT>(value);
44 }
45 template <typename DescriptionT = Aws::String>
46 StartSessionRequest& WithDescription(DescriptionT&& value) {
47 SetDescription(std::forward<DescriptionT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
57 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
58 template <typename WorkGroupT = Aws::String>
59 void SetWorkGroup(WorkGroupT&& value) {
60 m_workGroupHasBeenSet = true;
61 m_workGroup = std::forward<WorkGroupT>(value);
62 }
63 template <typename WorkGroupT = Aws::String>
64 StartSessionRequest& WithWorkGroup(WorkGroupT&& value) {
65 SetWorkGroup(std::forward<WorkGroupT>(value));
66 return *this;
67 }
69
71
75 inline const EngineConfiguration& GetEngineConfiguration() const { return m_engineConfiguration; }
76 inline bool EngineConfigurationHasBeenSet() const { return m_engineConfigurationHasBeenSet; }
77 template <typename EngineConfigurationT = EngineConfiguration>
78 void SetEngineConfiguration(EngineConfigurationT&& value) {
79 m_engineConfigurationHasBeenSet = true;
80 m_engineConfiguration = std::forward<EngineConfigurationT>(value);
81 }
82 template <typename EngineConfigurationT = EngineConfiguration>
83 StartSessionRequest& WithEngineConfiguration(EngineConfigurationT&& value) {
84 SetEngineConfiguration(std::forward<EngineConfigurationT>(value));
85 return *this;
86 }
88
90
98 inline const Aws::String& GetNotebookVersion() const { return m_notebookVersion; }
99 inline bool NotebookVersionHasBeenSet() const { return m_notebookVersionHasBeenSet; }
100 template <typename NotebookVersionT = Aws::String>
101 void SetNotebookVersion(NotebookVersionT&& value) {
102 m_notebookVersionHasBeenSet = true;
103 m_notebookVersion = std::forward<NotebookVersionT>(value);
104 }
105 template <typename NotebookVersionT = Aws::String>
106 StartSessionRequest& WithNotebookVersion(NotebookVersionT&& value) {
107 SetNotebookVersion(std::forward<NotebookVersionT>(value));
108 return *this;
109 }
111
113
116 inline int GetSessionIdleTimeoutInMinutes() const { return m_sessionIdleTimeoutInMinutes; }
117 inline bool SessionIdleTimeoutInMinutesHasBeenSet() const { return m_sessionIdleTimeoutInMinutesHasBeenSet; }
118 inline void SetSessionIdleTimeoutInMinutes(int value) {
119 m_sessionIdleTimeoutInMinutesHasBeenSet = true;
120 m_sessionIdleTimeoutInMinutes = value;
121 }
124 return *this;
125 }
127
129
140 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
141 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
142 template <typename ClientRequestTokenT = Aws::String>
143 void SetClientRequestToken(ClientRequestTokenT&& value) {
144 m_clientRequestTokenHasBeenSet = true;
145 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
146 }
147 template <typename ClientRequestTokenT = Aws::String>
148 StartSessionRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
149 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 Aws::String m_workGroup;
158 bool m_workGroupHasBeenSet = false;
159
160 EngineConfiguration m_engineConfiguration;
161 bool m_engineConfigurationHasBeenSet = false;
162
163 Aws::String m_notebookVersion;
164 bool m_notebookVersionHasBeenSet = false;
165
166 int m_sessionIdleTimeoutInMinutes{0};
167 bool m_sessionIdleTimeoutInMinutesHasBeenSet = false;
168
169 Aws::String m_clientRequestToken;
170 bool m_clientRequestTokenHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Athena
175} // namespace Aws
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const EngineConfiguration & GetEngineConfiguration() const
const Aws::String & GetClientRequestToken() const
AWS_ATHENA_API Aws::String SerializePayload() const override
void SetEngineConfiguration(EngineConfigurationT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
StartSessionRequest & WithWorkGroup(WorkGroupT &&value)
virtual const char * GetServiceRequestName() const override
StartSessionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartSessionRequest & WithNotebookVersion(NotebookVersionT &&value)
StartSessionRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetNotebookVersion() const
StartSessionRequest & WithEngineConfiguration(EngineConfigurationT &&value)
AWS_ATHENA_API StartSessionRequest()=default
void SetNotebookVersion(NotebookVersionT &&value)
const Aws::String & GetDescription() const
StartSessionRequest & WithSessionIdleTimeoutInMinutes(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String