AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 StartJobRunRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetVirtualClusterId() const { return m_virtualClusterId; }
57 inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; }
58 template<typename VirtualClusterIdT = Aws::String>
59 void SetVirtualClusterId(VirtualClusterIdT&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::forward<VirtualClusterIdT>(value); }
60 template<typename VirtualClusterIdT = Aws::String>
61 StartJobRunRequest& WithVirtualClusterId(VirtualClusterIdT&& value) { SetVirtualClusterId(std::forward<VirtualClusterIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetClientToken() const { return m_clientToken; }
69 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
70 template<typename ClientTokenT = Aws::String>
71 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
72 template<typename ClientTokenT = Aws::String>
73 StartJobRunRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
75
77
80 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
81 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
82 template<typename ExecutionRoleArnT = Aws::String>
83 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
84 template<typename ExecutionRoleArnT = Aws::String>
85 StartJobRunRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
87
89
92 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
93 inline bool ReleaseLabelHasBeenSet() const { return m_releaseLabelHasBeenSet; }
94 template<typename ReleaseLabelT = Aws::String>
95 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
96 template<typename ReleaseLabelT = Aws::String>
97 StartJobRunRequest& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
99
101
104 inline const JobDriver& GetJobDriver() const { return m_jobDriver; }
105 inline bool JobDriverHasBeenSet() const { return m_jobDriverHasBeenSet; }
106 template<typename JobDriverT = JobDriver>
107 void SetJobDriver(JobDriverT&& value) { m_jobDriverHasBeenSet = true; m_jobDriver = std::forward<JobDriverT>(value); }
108 template<typename JobDriverT = JobDriver>
109 StartJobRunRequest& WithJobDriver(JobDriverT&& value) { SetJobDriver(std::forward<JobDriverT>(value)); return *this;}
111
113
116 inline const ConfigurationOverrides& GetConfigurationOverrides() const { return m_configurationOverrides; }
117 inline bool ConfigurationOverridesHasBeenSet() const { return m_configurationOverridesHasBeenSet; }
118 template<typename ConfigurationOverridesT = ConfigurationOverrides>
119 void SetConfigurationOverrides(ConfigurationOverridesT&& value) { m_configurationOverridesHasBeenSet = true; m_configurationOverrides = std::forward<ConfigurationOverridesT>(value); }
120 template<typename ConfigurationOverridesT = ConfigurationOverrides>
121 StartJobRunRequest& WithConfigurationOverrides(ConfigurationOverridesT&& value) { SetConfigurationOverrides(std::forward<ConfigurationOverridesT>(value)); return *this;}
123
125
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 StartJobRunRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
134 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 StartJobRunRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
137 }
139
141
144 inline const Aws::String& GetJobTemplateId() const { return m_jobTemplateId; }
145 inline bool JobTemplateIdHasBeenSet() const { return m_jobTemplateIdHasBeenSet; }
146 template<typename JobTemplateIdT = Aws::String>
147 void SetJobTemplateId(JobTemplateIdT&& value) { m_jobTemplateIdHasBeenSet = true; m_jobTemplateId = std::forward<JobTemplateIdT>(value); }
148 template<typename JobTemplateIdT = Aws::String>
149 StartJobRunRequest& WithJobTemplateId(JobTemplateIdT&& value) { SetJobTemplateId(std::forward<JobTemplateIdT>(value)); return *this;}
151
153
156 inline const Aws::Map<Aws::String, Aws::String>& GetJobTemplateParameters() const { return m_jobTemplateParameters; }
157 inline bool JobTemplateParametersHasBeenSet() const { return m_jobTemplateParametersHasBeenSet; }
158 template<typename JobTemplateParametersT = Aws::Map<Aws::String, Aws::String>>
159 void SetJobTemplateParameters(JobTemplateParametersT&& value) { m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters = std::forward<JobTemplateParametersT>(value); }
160 template<typename JobTemplateParametersT = Aws::Map<Aws::String, Aws::String>>
161 StartJobRunRequest& WithJobTemplateParameters(JobTemplateParametersT&& value) { SetJobTemplateParameters(std::forward<JobTemplateParametersT>(value)); return *this;}
162 template<typename JobTemplateParametersKeyT = Aws::String, typename JobTemplateParametersValueT = Aws::String>
163 StartJobRunRequest& AddJobTemplateParameters(JobTemplateParametersKeyT&& key, JobTemplateParametersValueT&& value) {
164 m_jobTemplateParametersHasBeenSet = true; m_jobTemplateParameters.emplace(std::forward<JobTemplateParametersKeyT>(key), std::forward<JobTemplateParametersValueT>(value)); return *this;
165 }
167
169
172 inline const RetryPolicyConfiguration& GetRetryPolicyConfiguration() const { return m_retryPolicyConfiguration; }
173 inline bool RetryPolicyConfigurationHasBeenSet() const { return m_retryPolicyConfigurationHasBeenSet; }
174 template<typename RetryPolicyConfigurationT = RetryPolicyConfiguration>
175 void SetRetryPolicyConfiguration(RetryPolicyConfigurationT&& value) { m_retryPolicyConfigurationHasBeenSet = true; m_retryPolicyConfiguration = std::forward<RetryPolicyConfigurationT>(value); }
176 template<typename RetryPolicyConfigurationT = RetryPolicyConfiguration>
177 StartJobRunRequest& WithRetryPolicyConfiguration(RetryPolicyConfigurationT&& value) { SetRetryPolicyConfiguration(std::forward<RetryPolicyConfigurationT>(value)); return *this;}
179 private:
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
184 Aws::String m_virtualClusterId;
185 bool m_virtualClusterIdHasBeenSet = false;
186
188 bool m_clientTokenHasBeenSet = true;
189
190 Aws::String m_executionRoleArn;
191 bool m_executionRoleArnHasBeenSet = false;
192
193 Aws::String m_releaseLabel;
194 bool m_releaseLabelHasBeenSet = false;
195
196 JobDriver m_jobDriver;
197 bool m_jobDriverHasBeenSet = false;
198
199 ConfigurationOverrides m_configurationOverrides;
200 bool m_configurationOverridesHasBeenSet = false;
201
203 bool m_tagsHasBeenSet = false;
204
205 Aws::String m_jobTemplateId;
206 bool m_jobTemplateIdHasBeenSet = false;
207
208 Aws::Map<Aws::String, Aws::String> m_jobTemplateParameters;
209 bool m_jobTemplateParametersHasBeenSet = false;
210
211 RetryPolicyConfiguration m_retryPolicyConfiguration;
212 bool m_retryPolicyConfigurationHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace EMRContainers
217} // namespace Aws
void SetVirtualClusterId(VirtualClusterIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
StartJobRunRequest & WithName(NameT &&value)
StartJobRunRequest & WithTags(TagsT &&value)
StartJobRunRequest & WithJobDriver(JobDriverT &&value)
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
StartJobRunRequest & WithConfigurationOverrides(ConfigurationOverridesT &&value)
StartJobRunRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
StartJobRunRequest & WithClientToken(ClientTokenT &&value)
const RetryPolicyConfiguration & GetRetryPolicyConfiguration() const
StartJobRunRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const ConfigurationOverrides & GetConfigurationOverrides() const
AWS_EMRCONTAINERS_API StartJobRunRequest()=default
StartJobRunRequest & AddJobTemplateParameters(JobTemplateParametersKeyT &&key, JobTemplateParametersValueT &&value)
StartJobRunRequest & WithRetryPolicyConfiguration(RetryPolicyConfigurationT &&value)
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetJobTemplateParameters() const
StartJobRunRequest & WithVirtualClusterId(VirtualClusterIdT &&value)
StartJobRunRequest & WithJobTemplateId(JobTemplateIdT &&value)
StartJobRunRequest & WithJobTemplateParameters(JobTemplateParametersT &&value)
void SetRetryPolicyConfiguration(RetryPolicyConfigurationT &&value)
StartJobRunRequest & WithReleaseLabel(ReleaseLabelT &&value)
void SetJobTemplateParameters(JobTemplateParametersT &&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