AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RuleExecution.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ErrorDetails.h>
9#include <aws/codepipeline/model/RuleExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline {
23namespace Model {
24
33 public:
34 AWS_CODEPIPELINE_API RuleExecution() = default;
35 AWS_CODEPIPELINE_API RuleExecution(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEPIPELINE_API RuleExecution& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRuleExecutionId() const { return m_ruleExecutionId; }
44 inline bool RuleExecutionIdHasBeenSet() const { return m_ruleExecutionIdHasBeenSet; }
45 template <typename RuleExecutionIdT = Aws::String>
46 void SetRuleExecutionId(RuleExecutionIdT&& value) {
47 m_ruleExecutionIdHasBeenSet = true;
48 m_ruleExecutionId = std::forward<RuleExecutionIdT>(value);
49 }
50 template <typename RuleExecutionIdT = Aws::String>
51 RuleExecution& WithRuleExecutionId(RuleExecutionIdT&& value) {
52 SetRuleExecutionId(std::forward<RuleExecutionIdT>(value));
53 return *this;
54 }
56
58
61 inline RuleExecutionStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(RuleExecutionStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSummary() const { return m_summary; }
78 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
79 template <typename SummaryT = Aws::String>
80 void SetSummary(SummaryT&& value) {
81 m_summaryHasBeenSet = true;
82 m_summary = std::forward<SummaryT>(value);
83 }
84 template <typename SummaryT = Aws::String>
85 RuleExecution& WithSummary(SummaryT&& value) {
86 SetSummary(std::forward<SummaryT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetLastStatusChange() const { return m_lastStatusChange; }
96 inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; }
97 template <typename LastStatusChangeT = Aws::Utils::DateTime>
98 void SetLastStatusChange(LastStatusChangeT&& value) {
99 m_lastStatusChangeHasBeenSet = true;
100 m_lastStatusChange = std::forward<LastStatusChangeT>(value);
101 }
102 template <typename LastStatusChangeT = Aws::Utils::DateTime>
103 RuleExecution& WithLastStatusChange(LastStatusChangeT&& value) {
104 SetLastStatusChange(std::forward<LastStatusChangeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetToken() const { return m_token; }
114 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
115 template <typename TokenT = Aws::String>
116 void SetToken(TokenT&& value) {
117 m_tokenHasBeenSet = true;
118 m_token = std::forward<TokenT>(value);
119 }
120 template <typename TokenT = Aws::String>
121 RuleExecution& WithToken(TokenT&& value) {
122 SetToken(std::forward<TokenT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
132 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
133 template <typename LastUpdatedByT = Aws::String>
134 void SetLastUpdatedBy(LastUpdatedByT&& value) {
135 m_lastUpdatedByHasBeenSet = true;
136 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
137 }
138 template <typename LastUpdatedByT = Aws::String>
139 RuleExecution& WithLastUpdatedBy(LastUpdatedByT&& value) {
140 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetExternalExecutionId() const { return m_externalExecutionId; }
150 inline bool ExternalExecutionIdHasBeenSet() const { return m_externalExecutionIdHasBeenSet; }
151 template <typename ExternalExecutionIdT = Aws::String>
152 void SetExternalExecutionId(ExternalExecutionIdT&& value) {
153 m_externalExecutionIdHasBeenSet = true;
154 m_externalExecutionId = std::forward<ExternalExecutionIdT>(value);
155 }
156 template <typename ExternalExecutionIdT = Aws::String>
157 RuleExecution& WithExternalExecutionId(ExternalExecutionIdT&& value) {
158 SetExternalExecutionId(std::forward<ExternalExecutionIdT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetExternalExecutionUrl() const { return m_externalExecutionUrl; }
169 inline bool ExternalExecutionUrlHasBeenSet() const { return m_externalExecutionUrlHasBeenSet; }
170 template <typename ExternalExecutionUrlT = Aws::String>
171 void SetExternalExecutionUrl(ExternalExecutionUrlT&& value) {
172 m_externalExecutionUrlHasBeenSet = true;
173 m_externalExecutionUrl = std::forward<ExternalExecutionUrlT>(value);
174 }
175 template <typename ExternalExecutionUrlT = Aws::String>
176 RuleExecution& WithExternalExecutionUrl(ExternalExecutionUrlT&& value) {
177 SetExternalExecutionUrl(std::forward<ExternalExecutionUrlT>(value));
178 return *this;
179 }
181
183
184 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
185 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
186 template <typename ErrorDetailsT = ErrorDetails>
187 void SetErrorDetails(ErrorDetailsT&& value) {
188 m_errorDetailsHasBeenSet = true;
189 m_errorDetails = std::forward<ErrorDetailsT>(value);
190 }
191 template <typename ErrorDetailsT = ErrorDetails>
192 RuleExecution& WithErrorDetails(ErrorDetailsT&& value) {
193 SetErrorDetails(std::forward<ErrorDetailsT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_ruleExecutionId;
199
201
202 Aws::String m_summary;
203
204 Aws::Utils::DateTime m_lastStatusChange{};
205
206 Aws::String m_token;
207
208 Aws::String m_lastUpdatedBy;
209
210 Aws::String m_externalExecutionId;
211
212 Aws::String m_externalExecutionUrl;
213
214 ErrorDetails m_errorDetails;
215 bool m_ruleExecutionIdHasBeenSet = false;
216 bool m_statusHasBeenSet = false;
217 bool m_summaryHasBeenSet = false;
218 bool m_lastStatusChangeHasBeenSet = false;
219 bool m_tokenHasBeenSet = false;
220 bool m_lastUpdatedByHasBeenSet = false;
221 bool m_externalExecutionIdHasBeenSet = false;
222 bool m_externalExecutionUrlHasBeenSet = false;
223 bool m_errorDetailsHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace CodePipeline
228} // namespace Aws
RuleExecution & WithStatus(RuleExecutionStatus value)
const Aws::String & GetRuleExecutionId() const
RuleExecution & WithLastStatusChange(LastStatusChangeT &&value)
void SetRuleExecutionId(RuleExecutionIdT &&value)
RuleExecution & WithErrorDetails(ErrorDetailsT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(RuleExecutionStatus value)
RuleExecution & WithExternalExecutionId(ExternalExecutionIdT &&value)
RuleExecution & WithRuleExecutionId(RuleExecutionIdT &&value)
const Aws::String & GetToken() const
const ErrorDetails & GetErrorDetails() const
RuleExecution & WithLastUpdatedBy(LastUpdatedByT &&value)
RuleExecutionStatus GetStatus() const
void SetLastStatusChange(LastStatusChangeT &&value)
const Aws::String & GetSummary() const
void SetErrorDetails(ErrorDetailsT &&value)
AWS_CODEPIPELINE_API RuleExecution(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastStatusChange() const
const Aws::String & GetLastUpdatedBy() const
const Aws::String & GetExternalExecutionUrl() const
RuleExecution & WithToken(TokenT &&value)
AWS_CODEPIPELINE_API RuleExecution()=default
RuleExecution & WithSummary(SummaryT &&value)
RuleExecution & WithExternalExecutionUrl(ExternalExecutionUrlT &&value)
void SetLastUpdatedBy(LastUpdatedByT &&value)
AWS_CODEPIPELINE_API RuleExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExternalExecutionId(ExternalExecutionIdT &&value)
void SetExternalExecutionUrl(ExternalExecutionUrlT &&value)
const Aws::String & GetExternalExecutionId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue