AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartJobRequest.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplify/model/JobType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Amplify
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_AMPLIFY_API StartJobRequest();
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_AMPLIFY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetAppId() const{ return m_appId; }
46 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
47 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
48 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
49 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
50 inline StartJobRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
51 inline StartJobRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
52 inline StartJobRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
54
56
59 inline const Aws::String& GetBranchName() const{ return m_branchName; }
60 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
61 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
62 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
63 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
64 inline StartJobRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
65 inline StartJobRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
66 inline StartJobRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
68
70
74 inline const Aws::String& GetJobId() const{ return m_jobId; }
75 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
76 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
77 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
78 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
79 inline StartJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
80 inline StartJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
81 inline StartJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
83
85
92 inline const JobType& GetJobType() const{ return m_jobType; }
93 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
94 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
95 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
96 inline StartJobRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
97 inline StartJobRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetJobReason() const{ return m_jobReason; }
105 inline bool JobReasonHasBeenSet() const { return m_jobReasonHasBeenSet; }
106 inline void SetJobReason(const Aws::String& value) { m_jobReasonHasBeenSet = true; m_jobReason = value; }
107 inline void SetJobReason(Aws::String&& value) { m_jobReasonHasBeenSet = true; m_jobReason = std::move(value); }
108 inline void SetJobReason(const char* value) { m_jobReasonHasBeenSet = true; m_jobReason.assign(value); }
109 inline StartJobRequest& WithJobReason(const Aws::String& value) { SetJobReason(value); return *this;}
110 inline StartJobRequest& WithJobReason(Aws::String&& value) { SetJobReason(std::move(value)); return *this;}
111 inline StartJobRequest& WithJobReason(const char* value) { SetJobReason(value); return *this;}
113
115
118 inline const Aws::String& GetCommitId() const{ return m_commitId; }
119 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
120 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
121 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
122 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
123 inline StartJobRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
124 inline StartJobRequest& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
125 inline StartJobRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;}
127
129
132 inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; }
133 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
134 inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; }
135 inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); }
136 inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); }
137 inline StartJobRequest& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;}
138 inline StartJobRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;}
139 inline StartJobRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetCommitTime() const{ return m_commitTime; }
147 inline bool CommitTimeHasBeenSet() const { return m_commitTimeHasBeenSet; }
148 inline void SetCommitTime(const Aws::Utils::DateTime& value) { m_commitTimeHasBeenSet = true; m_commitTime = value; }
149 inline void SetCommitTime(Aws::Utils::DateTime&& value) { m_commitTimeHasBeenSet = true; m_commitTime = std::move(value); }
150 inline StartJobRequest& WithCommitTime(const Aws::Utils::DateTime& value) { SetCommitTime(value); return *this;}
151 inline StartJobRequest& WithCommitTime(Aws::Utils::DateTime&& value) { SetCommitTime(std::move(value)); return *this;}
153 private:
154
155 Aws::String m_appId;
156 bool m_appIdHasBeenSet = false;
157
158 Aws::String m_branchName;
159 bool m_branchNameHasBeenSet = false;
160
161 Aws::String m_jobId;
162 bool m_jobIdHasBeenSet = false;
163
164 JobType m_jobType;
165 bool m_jobTypeHasBeenSet = false;
166
167 Aws::String m_jobReason;
168 bool m_jobReasonHasBeenSet = false;
169
170 Aws::String m_commitId;
171 bool m_commitIdHasBeenSet = false;
172
173 Aws::String m_commitMessage;
174 bool m_commitMessageHasBeenSet = false;
175
176 Aws::Utils::DateTime m_commitTime;
177 bool m_commitTimeHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace Amplify
182} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::String & GetCommitId() const
StartJobRequest & WithCommitMessage(const char *value)
StartJobRequest & WithBranchName(const char *value)
StartJobRequest & WithCommitMessage(const Aws::String &value)
StartJobRequest & WithCommitId(Aws::String &&value)
void SetCommitId(const Aws::String &value)
StartJobRequest & WithCommitId(const Aws::String &value)
void SetCommitMessage(const Aws::String &value)
StartJobRequest & WithJobType(JobType &&value)
StartJobRequest & WithCommitTime(Aws::Utils::DateTime &&value)
void SetCommitId(Aws::String &&value)
void SetBranchName(Aws::String &&value)
const Aws::String & GetJobReason() const
StartJobRequest & WithAppId(const Aws::String &value)
const Aws::String & GetJobId() const
StartJobRequest & WithBranchName(const Aws::String &value)
void SetJobReason(Aws::String &&value)
void SetCommitTime(Aws::Utils::DateTime &&value)
StartJobRequest & WithAppId(const char *value)
void SetAppId(const Aws::String &value)
void SetCommitMessage(const char *value)
const Aws::String & GetAppId() const
void SetJobType(const JobType &value)
void SetJobId(Aws::String &&value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetCommitTime() const
void SetAppId(Aws::String &&value)
StartJobRequest & WithJobId(const Aws::String &value)
StartJobRequest & WithJobReason(const char *value)
StartJobRequest & WithCommitTime(const Aws::Utils::DateTime &value)
void SetCommitTime(const Aws::Utils::DateTime &value)
StartJobRequest & WithBranchName(Aws::String &&value)
StartJobRequest & WithJobId(Aws::String &&value)
const Aws::String & GetBranchName() const
void SetBranchName(const Aws::String &value)
StartJobRequest & WithJobId(const char *value)
StartJobRequest & WithJobReason(const Aws::String &value)
StartJobRequest & WithAppId(Aws::String &&value)
StartJobRequest & WithJobType(const JobType &value)
StartJobRequest & WithCommitMessage(Aws::String &&value)
void SetCommitMessage(Aws::String &&value)
StartJobRequest & WithJobReason(Aws::String &&value)
StartJobRequest & WithCommitId(const char *value)
const Aws::String & GetCommitMessage() const
void SetJobReason(const Aws::String &value)
void SetBranchName(const char *value)
void SetJobId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String