AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartSessionRequest.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/AthenaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/athena/model/EngineConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Athena
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ATHENA_API StartSessionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartSession"; }
32
33 AWS_ATHENA_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template<typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
46 template<typename DescriptionT = Aws::String>
47 StartSessionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
49
51
54 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
55 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
56 template<typename WorkGroupT = Aws::String>
57 void SetWorkGroup(WorkGroupT&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::forward<WorkGroupT>(value); }
58 template<typename WorkGroupT = Aws::String>
59 StartSessionRequest& WithWorkGroup(WorkGroupT&& value) { SetWorkGroup(std::forward<WorkGroupT>(value)); return *this;}
61
63
67 inline const EngineConfiguration& GetEngineConfiguration() const { return m_engineConfiguration; }
68 inline bool EngineConfigurationHasBeenSet() const { return m_engineConfigurationHasBeenSet; }
69 template<typename EngineConfigurationT = EngineConfiguration>
70 void SetEngineConfiguration(EngineConfigurationT&& value) { m_engineConfigurationHasBeenSet = true; m_engineConfiguration = std::forward<EngineConfigurationT>(value); }
71 template<typename EngineConfigurationT = EngineConfiguration>
72 StartSessionRequest& WithEngineConfiguration(EngineConfigurationT&& value) { SetEngineConfiguration(std::forward<EngineConfigurationT>(value)); return *this;}
74
76
84 inline const Aws::String& GetNotebookVersion() const { return m_notebookVersion; }
85 inline bool NotebookVersionHasBeenSet() const { return m_notebookVersionHasBeenSet; }
86 template<typename NotebookVersionT = Aws::String>
87 void SetNotebookVersion(NotebookVersionT&& value) { m_notebookVersionHasBeenSet = true; m_notebookVersion = std::forward<NotebookVersionT>(value); }
88 template<typename NotebookVersionT = Aws::String>
89 StartSessionRequest& WithNotebookVersion(NotebookVersionT&& value) { SetNotebookVersion(std::forward<NotebookVersionT>(value)); return *this;}
91
93
96 inline int GetSessionIdleTimeoutInMinutes() const { return m_sessionIdleTimeoutInMinutes; }
97 inline bool SessionIdleTimeoutInMinutesHasBeenSet() const { return m_sessionIdleTimeoutInMinutesHasBeenSet; }
98 inline void SetSessionIdleTimeoutInMinutes(int value) { m_sessionIdleTimeoutInMinutesHasBeenSet = true; m_sessionIdleTimeoutInMinutes = value; }
101
103
114 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
115 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
116 template<typename ClientRequestTokenT = Aws::String>
117 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
118 template<typename ClientRequestTokenT = Aws::String>
119 StartSessionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
121 private:
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::String m_workGroup;
127 bool m_workGroupHasBeenSet = false;
128
129 EngineConfiguration m_engineConfiguration;
130 bool m_engineConfigurationHasBeenSet = false;
131
132 Aws::String m_notebookVersion;
133 bool m_notebookVersionHasBeenSet = false;
134
135 int m_sessionIdleTimeoutInMinutes{0};
136 bool m_sessionIdleTimeoutInMinutesHasBeenSet = false;
137
138 Aws::String m_clientRequestToken;
139 bool m_clientRequestTokenHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Athena
144} // 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