AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartJobRunRequest.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/EMRContainersRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-containers/model/JobDriver.h>
11#include <aws/emr-containers/model/ConfigurationOverrides.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/emr-containers/model/RetryPolicyConfiguration.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EMRContainers
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EMRCONTAINERS_API StartJobRunRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartJobRun"; }
36
37 AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline StartJobRunRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline StartJobRunRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline StartJobRunRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetVirtualClusterId() const{ return m_virtualClusterId; }
59 inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; }
60 inline void SetVirtualClusterId(const Aws::String& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = value; }
61 inline void SetVirtualClusterId(Aws::String&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::move(value); }
62 inline void SetVirtualClusterId(const char* value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId.assign(value); }
63 inline StartJobRunRequest& WithVirtualClusterId(const Aws::String& value) { SetVirtualClusterId(value); return *this;}
64 inline StartJobRunRequest& WithVirtualClusterId(Aws::String&& value) { SetVirtualClusterId(std::move(value)); return *this;}
65 inline StartJobRunRequest& WithVirtualClusterId(const char* value) { SetVirtualClusterId(value); return *this;}
67
69
72 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
75 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
76 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
77 inline StartJobRunRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
78 inline StartJobRunRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
79 inline StartJobRunRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
81
83
86 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
87 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
88 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
89 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
90 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
91 inline StartJobRunRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
92 inline StartJobRunRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
93 inline StartJobRunRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
95
97
100 inline const Aws::String& GetReleaseLabel() const{ return m_releaseLabel; }
101 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
102 inline void SetReleaseLabel(const Aws::String& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; }
103 inline void SetReleaseLabel(Aws::String&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::move(value); }
104 inline void SetReleaseLabel(const char* value) { m_releaseLabelHasBeenSet = true; m_releaseLabel.assign(value); }
105 inline StartJobRunRequest& WithReleaseLabel(const Aws::String& value) { SetReleaseLabel(value); return *this;}
106 inline StartJobRunRequest& WithReleaseLabel(Aws::String&& value) { SetReleaseLabel(std::move(value)); return *this;}
107 inline StartJobRunRequest& WithReleaseLabel(const char* value) { SetReleaseLabel(value); return *this;}
109
111
114 inline const JobDriver& GetJobDriver() const{ return m_jobDriver; }
115 inline bool JobDriverHasBeenSet() const { return m_jobDriverHasBeenSet; }
116 inline void SetJobDriver(const JobDriver& value) { m_jobDriverHasBeenSet = true; m_jobDriver = value; }
117 inline void SetJobDriver(JobDriver&& value) { m_jobDriverHasBeenSet = true; m_jobDriver = std::move(value); }
118 inline StartJobRunRequest& WithJobDriver(const JobDriver& value) { SetJobDriver(value); return *this;}
119 inline StartJobRunRequest& WithJobDriver(JobDriver&& value) { SetJobDriver(std::move(value)); return *this;}
121
123
126 inline const ConfigurationOverrides& GetConfigurationOverrides() const{ return m_configurationOverrides; }
127 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
128 inline void SetConfigurationOverrides(const ConfigurationOverrides& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = value; }
129 inline void SetConfigurationOverrides(ConfigurationOverrides&& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = std::move(value); }
133
135
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
142 inline StartJobRunRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
143 inline StartJobRunRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
144 inline StartJobRunRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
145 inline StartJobRunRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
146 inline StartJobRunRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
147 inline StartJobRunRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
148 inline StartJobRunRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline StartJobRunRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
150 inline StartJobRunRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
152
154
157 inline const Aws::String& GetJobTemplateId() const{ return m_jobTemplateId; }
158 inline bool JobTemplateIdHasBeenSet() const { return m_jobTemplateIdHasBeenSet; }
159 inline void SetJobTemplateId(const Aws::String& value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId = value; }
160 inline void SetJobTemplateId(Aws::String&& value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId = std::move(value); }
161 inline void SetJobTemplateId(const char* value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId.assign(value); }
162 inline StartJobRunRequest& WithJobTemplateId(const Aws::String& value) { SetJobTemplateId(value); return *this;}
163 inline StartJobRunRequest& WithJobTemplateId(Aws::String&& value) { SetJobTemplateId(std::move(value)); return *this;}
164 inline StartJobRunRequest& WithJobTemplateId(const char* value) { SetJobTemplateId(value); return *this;}
166
168
171 inline const Aws::Map<Aws::String, Aws::String>& GetJobTemplateParameters() const{ return m_jobTemplateParameters; }
172 inline bool JobTemplateParametersHasBeenSet() const { return m_jobTemplateParametersHasBeenSet; }
173 inline void SetJobTemplateParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters = value; }
174 inline void SetJobTemplateParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters = std::move(value); }
177 inline StartJobRunRequest& AddJobTemplateParameters(const Aws::String& key, const Aws::String& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, value); return *this; }
178 inline StartJobRunRequest& AddJobTemplateParameters(Aws::String&& key, const Aws::String& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(std::move(key), value); return *this; }
179 inline StartJobRunRequest& AddJobTemplateParameters(const Aws::String& key, Aws::String&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, std::move(value)); return *this; }
180 inline StartJobRunRequest& AddJobTemplateParameters(Aws::String&& key, Aws::String&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(std::move(key), std::move(value)); return *this; }
181 inline StartJobRunRequest& AddJobTemplateParameters(const char* key, Aws::String&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, std::move(value)); return *this; }
182 inline StartJobRunRequest& AddJobTemplateParameters(Aws::String&& key, const char* value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(std::move(key), value); return *this; }
183 inline StartJobRunRequest& AddJobTemplateParameters(const char* key, const char* value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(key, value); return *this; }
185
187
190 inline const RetryPolicyConfiguration& GetRetryPolicyConfiguration() const{ return m_retryPolicyConfiguration; }
191 inline bool RetryPolicyConfigurationHasBeenSet() const { return m_retryPolicyConfigurationHasBeenSet; }
192 inline void SetRetryPolicyConfiguration(const RetryPolicyConfiguration& value) { m_retryPolicyConfigurationHasBeenSet = true; m_retryPolicyConfiguration = value; }
193 inline void SetRetryPolicyConfiguration(RetryPolicyConfiguration&& value) { m_retryPolicyConfigurationHasBeenSet = true; m_retryPolicyConfiguration = std::move(value); }
197 private:
198
199 Aws::String m_name;
200 bool m_nameHasBeenSet = false;
201
202 Aws::String m_virtualClusterId;
203 bool m_virtualClusterIdHasBeenSet = false;
204
205 Aws::String m_clientToken;
206 bool m_clientTokenHasBeenSet = false;
207
208 Aws::String m_executionRoleArn;
209 bool m_executionRoleArnHasBeenSet = false;
210
211 Aws::String m_releaseLabel;
212 bool m_releaseLabelHasBeenSet = false;
213
214 JobDriver m_jobDriver;
215 bool m_jobDriverHasBeenSet = false;
216
217 ConfigurationOverrides m_configurationOverrides;
218 bool m_configurationOverridesHasBeenSet = false;
219
221 bool m_tagsHasBeenSet = false;
222
223 Aws::String m_jobTemplateId;
224 bool m_jobTemplateIdHasBeenSet = false;
225
226 Aws::Map<Aws::String, Aws::String> m_jobTemplateParameters;
227 bool m_jobTemplateParametersHasBeenSet = false;
228
229 RetryPolicyConfiguration m_retryPolicyConfiguration;
230 bool m_retryPolicyConfigurationHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace EMRContainers
235} // namespace Aws
StartJobRunRequest & WithRetryPolicyConfiguration(const RetryPolicyConfiguration &value)
StartJobRunRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartJobRunRequest & AddJobTemplateParameters(const Aws::String &key, Aws::String &&value)
StartJobRunRequest & AddJobTemplateParameters(const char *key, const char *value)
void SetConfigurationOverrides(ConfigurationOverrides &&value)
StartJobRunRequest & AddJobTemplateParameters(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetVirtualClusterId(const Aws::String &value)
StartJobRunRequest & AddJobTemplateParameters(const Aws::String &key, const Aws::String &value)
StartJobRunRequest & WithExecutionRoleArn(const Aws::String &value)
StartJobRunRequest & WithRetryPolicyConfiguration(RetryPolicyConfiguration &&value)
void SetRetryPolicyConfiguration(RetryPolicyConfiguration &&value)
StartJobRunRequest & WithJobDriver(const JobDriver &value)
StartJobRunRequest & AddJobTemplateParameters(Aws::String &&key, const Aws::String &value)
StartJobRunRequest & WithExecutionRoleArn(const char *value)
StartJobRunRequest & WithName(Aws::String &&value)
StartJobRunRequest & AddTags(Aws::String &&key, Aws::String &&value)
StartJobRunRequest & WithName(const Aws::String &value)
void SetJobTemplateParameters(Aws::Map< Aws::String, Aws::String > &&value)
StartJobRunRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
StartJobRunRequest & WithJobTemplateId(const Aws::String &value)
StartJobRunRequest & WithJobDriver(JobDriver &&value)
StartJobRunRequest & WithClientToken(Aws::String &&value)
void SetConfigurationOverrides(const ConfigurationOverrides &value)
StartJobRunRequest & WithClientToken(const Aws::String &value)
StartJobRunRequest & WithJobTemplateParameters(const Aws::Map< Aws::String, Aws::String > &value)
StartJobRunRequest & WithVirtualClusterId(const Aws::String &value)
StartJobRunRequest & WithExecutionRoleArn(Aws::String &&value)
StartJobRunRequest & WithReleaseLabel(const Aws::String &value)
StartJobRunRequest & WithVirtualClusterId(const char *value)
const RetryPolicyConfiguration & GetRetryPolicyConfiguration() const
StartJobRunRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetExecutionRoleArn(const Aws::String &value)
StartJobRunRequest & WithName(const char *value)
void SetJobTemplateParameters(const Aws::Map< Aws::String, Aws::String > &value)
const ConfigurationOverrides & GetConfigurationOverrides() const
StartJobRunRequest & WithJobTemplateId(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
StartJobRunRequest & WithReleaseLabel(Aws::String &&value)
StartJobRunRequest & AddTags(const Aws::String &key, const Aws::String &value)
StartJobRunRequest & WithJobTemplateId(Aws::String &&value)
StartJobRunRequest & AddJobTemplateParameters(Aws::String &&key, const char *value)
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
StartJobRunRequest & WithVirtualClusterId(Aws::String &&value)
StartJobRunRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetJobTemplateParameters() const
StartJobRunRequest & WithReleaseLabel(const char *value)
void SetClientToken(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetJobTemplateId(const Aws::String &value)
StartJobRunRequest & WithJobTemplateParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetRetryPolicyConfiguration(const RetryPolicyConfiguration &value)
StartJobRunRequest & AddTags(const char *key, const char *value)
StartJobRunRequest & AddJobTemplateParameters(const char *key, Aws::String &&value)
StartJobRunRequest & WithClientToken(const char *value)
StartJobRunRequest & AddTags(const Aws::String &key, Aws::String &&value)
StartJobRunRequest & WithConfigurationOverrides(const ConfigurationOverrides &value)
StartJobRunRequest & AddTags(Aws::String &&key, const char *value)
StartJobRunRequest & WithConfigurationOverrides(ConfigurationOverrides &&value)
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