AWS SDK for C++

AWS SDK for C++ Version 1.11.793

Loading...
Searching...
No Matches
StartJobRequest.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/location/LocationServiceRequest.h>
11#include <aws/location/LocationService_EXPORTS.h>
12#include <aws/location/model/JobAction.h>
13#include <aws/location/model/JobActionOptions.h>
14#include <aws/location/model/JobInputOptions.h>
15#include <aws/location/model/JobOutputOptions.h>
16
17#include <utility>
18
19namespace Aws {
20namespace LocationService {
21namespace Model {
22
26 public:
27 AWS_LOCATIONSERVICE_API StartJobRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartJob"; }
34
35 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
49 StartJobRequest& WithClientToken(ClientTokenT&& value) {
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
59 inline JobAction GetAction() const { return m_action; }
60 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
61 inline void SetAction(JobAction value) {
62 m_actionHasBeenSet = true;
63 m_action = value;
64 }
66 SetAction(value);
67 return *this;
68 }
70
72
75 inline const JobActionOptions& GetActionOptions() const { return m_actionOptions; }
76 inline bool ActionOptionsHasBeenSet() const { return m_actionOptionsHasBeenSet; }
77 template <typename ActionOptionsT = JobActionOptions>
78 void SetActionOptions(ActionOptionsT&& value) {
79 m_actionOptionsHasBeenSet = true;
80 m_actionOptions = std::forward<ActionOptionsT>(value);
81 }
82 template <typename ActionOptionsT = JobActionOptions>
83 StartJobRequest& WithActionOptions(ActionOptionsT&& value) {
84 SetActionOptions(std::forward<ActionOptionsT>(value));
85 return *this;
86 }
88
90
100 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
101 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
102 template <typename ExecutionRoleArnT = Aws::String>
103 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
104 m_executionRoleArnHasBeenSet = true;
105 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
106 }
107 template <typename ExecutionRoleArnT = Aws::String>
108 StartJobRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
109 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
110 return *this;
111 }
113
115
120 inline const JobInputOptions& GetInputOptions() const { return m_inputOptions; }
121 inline bool InputOptionsHasBeenSet() const { return m_inputOptionsHasBeenSet; }
122 template <typename InputOptionsT = JobInputOptions>
123 void SetInputOptions(InputOptionsT&& value) {
124 m_inputOptionsHasBeenSet = true;
125 m_inputOptions = std::forward<InputOptionsT>(value);
126 }
127 template <typename InputOptionsT = JobInputOptions>
128 StartJobRequest& WithInputOptions(InputOptionsT&& value) {
129 SetInputOptions(std::forward<InputOptionsT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetName() const { return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 template <typename NameT = Aws::String>
141 void SetName(NameT&& value) {
142 m_nameHasBeenSet = true;
143 m_name = std::forward<NameT>(value);
144 }
145 template <typename NameT = Aws::String>
146 StartJobRequest& WithName(NameT&& value) {
147 SetName(std::forward<NameT>(value));
148 return *this;
149 }
151
153
156 inline const JobOutputOptions& GetOutputOptions() const { return m_outputOptions; }
157 inline bool OutputOptionsHasBeenSet() const { return m_outputOptionsHasBeenSet; }
158 template <typename OutputOptionsT = JobOutputOptions>
159 void SetOutputOptions(OutputOptionsT&& value) {
160 m_outputOptionsHasBeenSet = true;
161 m_outputOptions = std::forward<OutputOptionsT>(value);
162 }
163 template <typename OutputOptionsT = JobOutputOptions>
164 StartJobRequest& WithOutputOptions(OutputOptionsT&& value) {
165 SetOutputOptions(std::forward<OutputOptionsT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags = std::forward<TagsT>(value);
180 }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 StartJobRequest& WithTags(TagsT&& value) {
183 SetTags(std::forward<TagsT>(value));
184 return *this;
185 }
186 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
187 StartJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
190 return *this;
191 }
193 private:
195
197
198 JobActionOptions m_actionOptions;
199
200 Aws::String m_executionRoleArn;
201
202 JobInputOptions m_inputOptions;
203
204 Aws::String m_name;
205
206 JobOutputOptions m_outputOptions;
207
209 bool m_clientTokenHasBeenSet = true;
210 bool m_actionHasBeenSet = false;
211 bool m_actionOptionsHasBeenSet = false;
212 bool m_executionRoleArnHasBeenSet = false;
213 bool m_inputOptionsHasBeenSet = false;
214 bool m_nameHasBeenSet = false;
215 bool m_outputOptionsHasBeenSet = false;
216 bool m_tagsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace LocationService
221} // namespace Aws
const JobInputOptions & GetInputOptions() const
StartJobRequest & WithName(NameT &&value)
const Aws::String & GetExecutionRoleArn() const
AWS_LOCATIONSERVICE_API StartJobRequest()=default
virtual const char * GetServiceRequestName() const override
StartJobRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartJobRequest & WithClientToken(ClientTokenT &&value)
StartJobRequest & WithActionOptions(ActionOptionsT &&value)
StartJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartJobRequest & WithInputOptions(InputOptionsT &&value)
const JobActionOptions & GetActionOptions() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const JobOutputOptions & GetOutputOptions() const
void SetActionOptions(ActionOptionsT &&value)
StartJobRequest & WithAction(JobAction value)
StartJobRequest & WithOutputOptions(OutputOptionsT &&value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
StartJobRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
void SetOutputOptions(OutputOptionsT &&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