AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
StartSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-serverless/EMRServerlessRequest.h>
11#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
12#include <aws/emr-serverless/model/SessionConfigurationOverrides.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EMRServerless {
18namespace Model {
19
23 public:
24 AWS_EMRSERVERLESS_API StartSessionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartSession"; }
31
32 AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
39 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
46 StartSessionRequest& WithApplicationId(ApplicationIdT&& value) {
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template <typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) {
63 m_clientTokenHasBeenSet = true;
64 m_clientToken = std::forward<ClientTokenT>(value);
65 }
66 template <typename ClientTokenT = Aws::String>
67 StartSessionRequest& WithClientToken(ClientTokenT&& value) {
68 SetClientToken(std::forward<ClientTokenT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
80 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
81 template <typename ExecutionRoleArnT = Aws::String>
82 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
83 m_executionRoleArnHasBeenSet = true;
84 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
85 }
86 template <typename ExecutionRoleArnT = Aws::String>
87 StartSessionRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
88 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
89 return *this;
90 }
92
94
98 inline const SessionConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
99 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
100 template <typename ConfigurationOverridesT = SessionConfigurationOverrides>
101 void SetConfigurationOverrides(ConfigurationOverridesT&& value) {
102 m_configurationOverridesHasBeenSet = true;
103 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
104 }
105 template <typename ConfigurationOverridesT = SessionConfigurationOverrides>
106 StartSessionRequest& WithConfigurationOverrides(ConfigurationOverridesT&& value) {
107 SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 void SetTags(TagsT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags = std::forward<TagsT>(value);
122 }
123 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 SetTags(std::forward<TagsT>(value));
126 return *this;
127 }
128 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
129 StartSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
132 return *this;
133 }
135
137
141 inline long long GetIdleTimeoutMinutes() const { return m_idleTimeoutMinutes; }
142 inline bool IdleTimeoutMinutesHasBeenSet() const { return m_idleTimeoutMinutesHasBeenSet; }
143 inline void SetIdleTimeoutMinutes(long long value) {
144 m_idleTimeoutMinutesHasBeenSet = true;
145 m_idleTimeoutMinutes = value;
146 }
149 return *this;
150 }
152
154
157 inline const Aws::String& GetName() const { return m_name; }
158 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
159 template <typename NameT = Aws::String>
160 void SetName(NameT&& value) {
161 m_nameHasBeenSet = true;
162 m_name = std::forward<NameT>(value);
163 }
164 template <typename NameT = Aws::String>
166 SetName(std::forward<NameT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_applicationId;
172
174
175 Aws::String m_executionRoleArn;
176
177 SessionConfigurationOverrides m_configurationOverrides;
178
180
181 long long m_idleTimeoutMinutes{0};
182
183 Aws::String m_name;
184 bool m_applicationIdHasBeenSet = false;
185 bool m_clientTokenHasBeenSet = true;
186 bool m_executionRoleArnHasBeenSet = false;
187 bool m_configurationOverridesHasBeenSet = false;
188 bool m_tagsHasBeenSet = false;
189 bool m_idleTimeoutMinutesHasBeenSet = false;
190 bool m_nameHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace EMRServerless
195} // namespace Aws
StartSessionRequest & WithConfigurationOverrides(ConfigurationOverridesT &&value)
AWS_EMRSERVERLESS_API StartSessionRequest()=default
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override
const SessionConfigurationOverrides & GetConfigurationOverrides() const
StartSessionRequest & WithTags(TagsT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartSessionRequest & WithApplicationId(ApplicationIdT &&value)
StartSessionRequest & WithClientToken(ClientTokenT &&value)
StartSessionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartSessionRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
StartSessionRequest & WithName(NameT &&value)
StartSessionRequest & WithIdleTimeoutMinutes(long long value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String