AWS SDK for C++  1.9.155
AWS SDK for C++
StartJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Amplify
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "StartJob"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetAppId() const{ return m_appId; }
45 
49  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
50 
54  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
55 
59  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
60 
64  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
65 
69  inline StartJobRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
70 
74  inline StartJobRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
75 
79  inline StartJobRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
80 
81 
85  inline const Aws::String& GetBranchName() const{ return m_branchName; }
86 
90  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
91 
95  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
96 
100  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
101 
105  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
106 
110  inline StartJobRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
111 
115  inline StartJobRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
116 
120  inline StartJobRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
121 
122 
127  inline const Aws::String& GetJobId() const{ return m_jobId; }
128 
133  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
134 
139  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
140 
145  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
146 
151  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
152 
157  inline StartJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
158 
163  inline StartJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
164 
169  inline StartJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
170 
171 
179  inline const JobType& GetJobType() const{ return m_jobType; }
180 
188  inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
189 
197  inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
198 
206  inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
207 
215  inline StartJobRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
216 
224  inline StartJobRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
225 
226 
230  inline const Aws::String& GetJobReason() const{ return m_jobReason; }
231 
235  inline bool JobReasonHasBeenSet() const { return m_jobReasonHasBeenSet; }
236 
240  inline void SetJobReason(const Aws::String& value) { m_jobReasonHasBeenSet = true; m_jobReason = value; }
241 
245  inline void SetJobReason(Aws::String&& value) { m_jobReasonHasBeenSet = true; m_jobReason = std::move(value); }
246 
250  inline void SetJobReason(const char* value) { m_jobReasonHasBeenSet = true; m_jobReason.assign(value); }
251 
255  inline StartJobRequest& WithJobReason(const Aws::String& value) { SetJobReason(value); return *this;}
256 
260  inline StartJobRequest& WithJobReason(Aws::String&& value) { SetJobReason(std::move(value)); return *this;}
261 
265  inline StartJobRequest& WithJobReason(const char* value) { SetJobReason(value); return *this;}
266 
267 
271  inline const Aws::String& GetCommitId() const{ return m_commitId; }
272 
276  inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
277 
281  inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
282 
286  inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
287 
291  inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
292 
296  inline StartJobRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
297 
301  inline StartJobRequest& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
302 
306  inline StartJobRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;}
307 
308 
312  inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
313 
317  inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
318 
322  inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
323 
327  inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
328 
332  inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
333 
337  inline StartJobRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
338 
342  inline StartJobRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
343 
347  inline StartJobRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
348 
349 
353  inline const Aws::Utils::DateTime& GetCommitTime() const{ return m_commitTime; }
354 
358  inline bool CommitTimeHasBeenSet() const { return m_commitTimeHasBeenSet; }
359 
363  inline void SetCommitTime(const Aws::Utils::DateTime& value) { m_commitTimeHasBeenSet = true; m_commitTime = value; }
364 
368  inline void SetCommitTime(Aws::Utils::DateTime&& value) { m_commitTimeHasBeenSet = true; m_commitTime = std::move(value); }
369 
373  inline StartJobRequest& WithCommitTime(const Aws::Utils::DateTime& value) { SetCommitTime(value); return *this;}
374 
378  inline StartJobRequest& WithCommitTime(Aws::Utils::DateTime&& value) { SetCommitTime(std::move(value)); return *this;}
379 
380  private:
381 
382  Aws::String m_appId;
383  bool m_appIdHasBeenSet;
384 
385  Aws::String m_branchName;
386  bool m_branchNameHasBeenSet;
387 
388  Aws::String m_jobId;
389  bool m_jobIdHasBeenSet;
390 
391  JobType m_jobType;
392  bool m_jobTypeHasBeenSet;
393 
394  Aws::String m_jobReason;
395  bool m_jobReasonHasBeenSet;
396 
397  Aws::String m_commitId;
398  bool m_commitIdHasBeenSet;
399 
400  Aws::String m_commitMessage;
401  bool m_commitMessageHasBeenSet;
402 
403  Aws::Utils::DateTime m_commitTime;
404  bool m_commitTimeHasBeenSet;
405  };
406 
407 } // namespace Model
408 } // namespace Amplify
409 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Amplify::Model::StartJobRequest::CommitMessageHasBeenSet
bool CommitMessageHasBeenSet() const
Definition: StartJobRequest.h:317
Amplify_EXPORTS.h
Aws::Amplify::Model::StartJobRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: StartJobRequest.h:49
Aws::Amplify::Model::StartJobRequest::SetAppId
void SetAppId(const char *value)
Definition: StartJobRequest.h:64
Aws::Amplify::Model::StartJobRequest::SetCommitMessage
void SetCommitMessage(const char *value)
Definition: StartJobRequest.h:332
Aws::Amplify::Model::StartJobRequest::WithAppId
StartJobRequest & WithAppId(const char *value)
Definition: StartJobRequest.h:79
Aws::Amplify::Model::StartJobRequest::GetCommitMessage
const Aws::String & GetCommitMessage() const
Definition: StartJobRequest.h:312
Aws::Amplify::Model::StartJobRequest::WithAppId
StartJobRequest & WithAppId(Aws::String &&value)
Definition: StartJobRequest.h:74
Aws::Amplify::Model::StartJobRequest::SetCommitMessage
void SetCommitMessage(Aws::String &&value)
Definition: StartJobRequest.h:327
Aws::Amplify::Model::StartJobRequest::WithJobId
StartJobRequest & WithJobId(const Aws::String &value)
Definition: StartJobRequest.h:157
Aws::Amplify::Model::StartJobRequest::WithBranchName
StartJobRequest & WithBranchName(const char *value)
Definition: StartJobRequest.h:120
Aws::Amplify::Model::StartJobRequest::SetCommitId
void SetCommitId(const char *value)
Definition: StartJobRequest.h:291
JobType.h
DateTime.h
Aws::Amplify::Model::StartJobRequest::WithCommitTime
StartJobRequest & WithCommitTime(Aws::Utils::DateTime &&value)
Definition: StartJobRequest.h:378
Aws::Amplify::Model::JobType
JobType
Definition: JobType.h:17
Aws::Amplify::Model::StartJobRequest::WithCommitId
StartJobRequest & WithCommitId(const char *value)
Definition: StartJobRequest.h:306
Aws::Amplify::Model::StartJobRequest::JobTypeHasBeenSet
bool JobTypeHasBeenSet() const
Definition: StartJobRequest.h:188
Aws::Amplify::Model::StartJobRequest::SetBranchName
void SetBranchName(const char *value)
Definition: StartJobRequest.h:105
Aws::Amplify::Model::StartJobRequest::WithCommitTime
StartJobRequest & WithCommitTime(const Aws::Utils::DateTime &value)
Definition: StartJobRequest.h:373
Aws::Amplify::Model::StartJobRequest::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: StartJobRequest.h:286
Aws::Amplify::Model::StartJobRequest::WithCommitMessage
StartJobRequest & WithCommitMessage(const char *value)
Definition: StartJobRequest.h:347
AmplifyRequest.h
Aws::Amplify::Model::StartJobRequest::SetCommitTime
void SetCommitTime(const Aws::Utils::DateTime &value)
Definition: StartJobRequest.h:363
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::StartJobRequest::WithCommitId
StartJobRequest & WithCommitId(Aws::String &&value)
Definition: StartJobRequest.h:301
Aws::Amplify::Model::StartJobRequest::SetCommitMessage
void SetCommitMessage(const Aws::String &value)
Definition: StartJobRequest.h:322
Aws::Amplify::Model::StartJobRequest::JobReasonHasBeenSet
bool JobReasonHasBeenSet() const
Definition: StartJobRequest.h:235
Aws::Amplify::Model::StartJobRequest::SetJobType
void SetJobType(JobType &&value)
Definition: StartJobRequest.h:206
Aws::Amplify::Model::StartJobRequest
Definition: StartJobRequest.h:28
Aws::Amplify::Model::StartJobRequest::WithJobId
StartJobRequest & WithJobId(Aws::String &&value)
Definition: StartJobRequest.h:163
Aws::Amplify::Model::StartJobRequest::SetJobReason
void SetJobReason(Aws::String &&value)
Definition: StartJobRequest.h:245
Aws::Amplify::Model::StartJobRequest::SetCommitTime
void SetCommitTime(Aws::Utils::DateTime &&value)
Definition: StartJobRequest.h:368
Aws::Amplify::Model::StartJobRequest::CommitIdHasBeenSet
bool CommitIdHasBeenSet() const
Definition: StartJobRequest.h:276
Aws::Amplify::Model::StartJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::StartJobRequest::GetCommitId
const Aws::String & GetCommitId() const
Definition: StartJobRequest.h:271
Aws::Amplify::Model::StartJobRequest::WithJobReason
StartJobRequest & WithJobReason(const char *value)
Definition: StartJobRequest.h:265
Aws::Amplify::Model::StartJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartJobRequest.h:36
Aws::Amplify::Model::StartJobRequest::CommitTimeHasBeenSet
bool CommitTimeHasBeenSet() const
Definition: StartJobRequest.h:358
Aws::Amplify::Model::StartJobRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: StartJobRequest.h:59
AWSString.h
Aws::Amplify::Model::StartJobRequest::WithJobReason
StartJobRequest & WithJobReason(Aws::String &&value)
Definition: StartJobRequest.h:260
Aws::Amplify::Model::StartJobRequest::GetCommitTime
const Aws::Utils::DateTime & GetCommitTime() const
Definition: StartJobRequest.h:353
Aws::Amplify::Model::StartJobRequest::SetJobReason
void SetJobReason(const char *value)
Definition: StartJobRequest.h:250
Aws::Amplify::Model::StartJobRequest::SetJobReason
void SetJobReason(const Aws::String &value)
Definition: StartJobRequest.h:240
Aws::Amplify::Model::StartJobRequest::WithCommitMessage
StartJobRequest & WithCommitMessage(const Aws::String &value)
Definition: StartJobRequest.h:337
Aws::Amplify::Model::StartJobRequest::GetJobId
const Aws::String & GetJobId() const
Definition: StartJobRequest.h:127
Aws::Amplify::Model::StartJobRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: StartJobRequest.h:85
Aws::Amplify::Model::StartJobRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: StartJobRequest.h:95
Aws::Amplify::Model::StartJobRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: StartJobRequest.h:133
Aws::Amplify::Model::StartJobRequest::WithAppId
StartJobRequest & WithAppId(const Aws::String &value)
Definition: StartJobRequest.h:69
Aws::Amplify::Model::StartJobRequest::SetJobId
void SetJobId(const char *value)
Definition: StartJobRequest.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::StartJobRequest::WithJobType
StartJobRequest & WithJobType(const JobType &value)
Definition: StartJobRequest.h:215
Aws::Amplify::Model::StartJobRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: StartJobRequest.h:100
Aws::Amplify::Model::StartJobRequest::GetJobType
const JobType & GetJobType() const
Definition: StartJobRequest.h:179
Aws::Amplify::Model::StartJobRequest::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: StartJobRequest.h:281
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::StartJobRequest::WithJobId
StartJobRequest & WithJobId(const char *value)
Definition: StartJobRequest.h:169
Aws::Amplify::Model::StartJobRequest::GetAppId
const Aws::String & GetAppId() const
Definition: StartJobRequest.h:44
Aws::Amplify::Model::StartJobRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: StartJobRequest.h:145
Aws::Amplify::Model::StartJobRequest::WithBranchName
StartJobRequest & WithBranchName(Aws::String &&value)
Definition: StartJobRequest.h:115
Aws::Amplify::Model::StartJobRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: StartJobRequest.h:90
Aws::Amplify::Model::StartJobRequest::WithCommitMessage
StartJobRequest & WithCommitMessage(Aws::String &&value)
Definition: StartJobRequest.h:342
Aws::Amplify::Model::StartJobRequest::SetJobType
void SetJobType(const JobType &value)
Definition: StartJobRequest.h:197
Aws::Amplify::Model::StartJobRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: StartJobRequest.h:139
Aws::Amplify::Model::StartJobRequest::WithBranchName
StartJobRequest & WithBranchName(const Aws::String &value)
Definition: StartJobRequest.h:110
Aws::Amplify::Model::StartJobRequest::WithJobType
StartJobRequest & WithJobType(JobType &&value)
Definition: StartJobRequest.h:224
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Amplify::Model::StartJobRequest::GetJobReason
const Aws::String & GetJobReason() const
Definition: StartJobRequest.h:230
Aws::Amplify::Model::StartJobRequest::StartJobRequest
StartJobRequest()
Aws::Amplify::Model::StartJobRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: StartJobRequest.h:54
Aws::Amplify::Model::StartJobRequest::WithJobReason
StartJobRequest & WithJobReason(const Aws::String &value)
Definition: StartJobRequest.h:255
Aws::Amplify::Model::StartJobRequest::WithCommitId
StartJobRequest & WithCommitId(const Aws::String &value)
Definition: StartJobRequest.h:296