AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
45 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
46 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
47 inline StartSessionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
48 inline StartSessionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
49 inline StartSessionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
51
53
56 inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
57 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
58 inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
59 inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
60 inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
61 inline StartSessionRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
62 inline StartSessionRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
63 inline StartSessionRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
65
67
71 inline const EngineConfiguration& GetEngineConfiguration() const{ return m_engineConfiguration; }
72 inline bool EngineConfigurationHasBeenSet() const { return m_engineConfigurationHasBeenSet; }
73 inline void SetEngineConfiguration(const EngineConfiguration& value) { m_engineConfigurationHasBeenSet = true; m_engineConfiguration = value; }
74 inline void SetEngineConfiguration(EngineConfiguration&& value) { m_engineConfigurationHasBeenSet = true; m_engineConfiguration = std::move(value); }
78
80
88 inline const Aws::String& GetNotebookVersion() const{ return m_notebookVersion; }
89 inline bool NotebookVersionHasBeenSet() const { return m_notebookVersionHasBeenSet; }
90 inline void SetNotebookVersion(const Aws::String& value) { m_notebookVersionHasBeenSet = true; m_notebookVersion = value; }
91 inline void SetNotebookVersion(Aws::String&& value) { m_notebookVersionHasBeenSet = true; m_notebookVersion = std::move(value); }
92 inline void SetNotebookVersion(const char* value) { m_notebookVersionHasBeenSet = true; m_notebookVersion.assign(value); }
93 inline StartSessionRequest& WithNotebookVersion(const Aws::String& value) { SetNotebookVersion(value); return *this;}
94 inline StartSessionRequest& WithNotebookVersion(Aws::String&& value) { SetNotebookVersion(std::move(value)); return *this;}
95 inline StartSessionRequest& WithNotebookVersion(const char* value) { SetNotebookVersion(value); return *this;}
97
99
102 inline int GetSessionIdleTimeoutInMinutes() const{ return m_sessionIdleTimeoutInMinutes; }
103 inline bool SessionIdleTimeoutInMinutesHasBeenSet() const { return m_sessionIdleTimeoutInMinutesHasBeenSet; }
104 inline void SetSessionIdleTimeoutInMinutes(int value) { m_sessionIdleTimeoutInMinutesHasBeenSet = true; m_sessionIdleTimeoutInMinutes = value; }
107
109
120 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
121 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
122 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
123 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
124 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
126 inline StartSessionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
127 inline StartSessionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
129 private:
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::String m_workGroup;
135 bool m_workGroupHasBeenSet = false;
136
137 EngineConfiguration m_engineConfiguration;
138 bool m_engineConfigurationHasBeenSet = false;
139
140 Aws::String m_notebookVersion;
141 bool m_notebookVersionHasBeenSet = false;
142
143 int m_sessionIdleTimeoutInMinutes;
144 bool m_sessionIdleTimeoutInMinutesHasBeenSet = false;
145
146 Aws::String m_clientRequestToken;
147 bool m_clientRequestTokenHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Athena
152} // namespace Aws
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDescription(const Aws::String &value)
const EngineConfiguration & GetEngineConfiguration() const
const Aws::String & GetClientRequestToken() const
StartSessionRequest & WithDescription(Aws::String &&value)
AWS_ATHENA_API Aws::String SerializePayload() const override
StartSessionRequest & WithClientRequestToken(const Aws::String &value)
StartSessionRequest & WithWorkGroup(const Aws::String &value)
void SetEngineConfiguration(EngineConfiguration &&value)
StartSessionRequest & WithWorkGroup(const char *value)
void SetEngineConfiguration(const EngineConfiguration &value)
virtual const char * GetServiceRequestName() const override
StartSessionRequest & WithNotebookVersion(const Aws::String &value)
void SetNotebookVersion(const Aws::String &value)
StartSessionRequest & WithClientRequestToken(const char *value)
StartSessionRequest & WithWorkGroup(Aws::String &&value)
void SetWorkGroup(const Aws::String &value)
void SetClientRequestToken(const Aws::String &value)
StartSessionRequest & WithEngineConfiguration(EngineConfiguration &&value)
StartSessionRequest & WithDescription(const Aws::String &value)
const Aws::String & GetNotebookVersion() const
StartSessionRequest & WithNotebookVersion(Aws::String &&value)
StartSessionRequest & WithDescription(const char *value)
StartSessionRequest & WithNotebookVersion(const char *value)
StartSessionRequest & WithEngineConfiguration(const EngineConfiguration &value)
const Aws::String & GetDescription() const
void SetClientRequestToken(Aws::String &&value)
StartSessionRequest & WithSessionIdleTimeoutInMinutes(int value)
StartSessionRequest & WithClientRequestToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String