AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RuleExecution.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/RuleExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codepipeline/model/ErrorDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodePipeline
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_CODEPIPELINE_API RuleExecution() = default;
40 AWS_CODEPIPELINE_API RuleExecution(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API RuleExecution& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetRuleExecutionId() const { return m_ruleExecutionId; }
50 inline bool RuleExecutionIdHasBeenSet() const { return m_ruleExecutionIdHasBeenSet; }
51 template<typename RuleExecutionIdT = Aws::String>
52 void SetRuleExecutionId(RuleExecutionIdT&& value) { m_ruleExecutionIdHasBeenSet = true; m_ruleExecutionId = std::forward<RuleExecutionIdT>(value); }
53 template<typename RuleExecutionIdT = Aws::String>
54 RuleExecution& WithRuleExecutionId(RuleExecutionIdT&& value) { SetRuleExecutionId(std::forward<RuleExecutionIdT>(value)); return *this;}
56
58
61 inline RuleExecutionStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(RuleExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
64 inline RuleExecution& WithStatus(RuleExecutionStatus value) { SetStatus(value); return *this;}
66
68
71 inline const Aws::String& GetSummary() const { return m_summary; }
72 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
73 template<typename SummaryT = Aws::String>
74 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
75 template<typename SummaryT = Aws::String>
76 RuleExecution& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetLastStatusChange() const { return m_lastStatusChange; }
84 inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; }
85 template<typename LastStatusChangeT = Aws::Utils::DateTime>
86 void SetLastStatusChange(LastStatusChangeT&& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = std::forward<LastStatusChangeT>(value); }
87 template<typename LastStatusChangeT = Aws::Utils::DateTime>
88 RuleExecution& WithLastStatusChange(LastStatusChangeT&& value) { SetLastStatusChange(std::forward<LastStatusChangeT>(value)); return *this;}
90
92
95 inline const Aws::String& GetToken() const { return m_token; }
96 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
97 template<typename TokenT = Aws::String>
98 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
99 template<typename TokenT = Aws::String>
100 RuleExecution& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
102
104
107 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
108 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
109 template<typename LastUpdatedByT = Aws::String>
110 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
111 template<typename LastUpdatedByT = Aws::String>
112 RuleExecution& WithLastUpdatedBy(LastUpdatedByT&& value) { SetLastUpdatedBy(std::forward<LastUpdatedByT>(value)); return *this;}
114
116
119 inline const Aws::String& GetExternalExecutionId() const { return m_externalExecutionId; }
120 inline bool ExternalExecutionIdHasBeenSet() const { return m_externalExecutionIdHasBeenSet; }
121 template<typename ExternalExecutionIdT = Aws::String>
122 void SetExternalExecutionId(ExternalExecutionIdT&& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = std::forward<ExternalExecutionIdT>(value); }
123 template<typename ExternalExecutionIdT = Aws::String>
124 RuleExecution& WithExternalExecutionId(ExternalExecutionIdT&& value) { SetExternalExecutionId(std::forward<ExternalExecutionIdT>(value)); return *this;}
126
128
132 inline const Aws::String& GetExternalExecutionUrl() const { return m_externalExecutionUrl; }
133 inline bool ExternalExecutionUrlHasBeenSet() const { return m_externalExecutionUrlHasBeenSet; }
134 template<typename ExternalExecutionUrlT = Aws::String>
135 void SetExternalExecutionUrl(ExternalExecutionUrlT&& value) { m_externalExecutionUrlHasBeenSet = true; m_externalExecutionUrl = std::forward<ExternalExecutionUrlT>(value); }
136 template<typename ExternalExecutionUrlT = Aws::String>
137 RuleExecution& WithExternalExecutionUrl(ExternalExecutionUrlT&& value) { SetExternalExecutionUrl(std::forward<ExternalExecutionUrlT>(value)); return *this;}
139
141
142 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
143 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
144 template<typename ErrorDetailsT = ErrorDetails>
145 void SetErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::forward<ErrorDetailsT>(value); }
146 template<typename ErrorDetailsT = ErrorDetails>
147 RuleExecution& WithErrorDetails(ErrorDetailsT&& value) { SetErrorDetails(std::forward<ErrorDetailsT>(value)); return *this;}
149 private:
150
151 Aws::String m_ruleExecutionId;
152 bool m_ruleExecutionIdHasBeenSet = false;
153
155 bool m_statusHasBeenSet = false;
156
157 Aws::String m_summary;
158 bool m_summaryHasBeenSet = false;
159
160 Aws::Utils::DateTime m_lastStatusChange{};
161 bool m_lastStatusChangeHasBeenSet = false;
162
163 Aws::String m_token;
164 bool m_tokenHasBeenSet = false;
165
166 Aws::String m_lastUpdatedBy;
167 bool m_lastUpdatedByHasBeenSet = false;
168
169 Aws::String m_externalExecutionId;
170 bool m_externalExecutionIdHasBeenSet = false;
171
172 Aws::String m_externalExecutionUrl;
173 bool m_externalExecutionUrlHasBeenSet = false;
174
175 ErrorDetails m_errorDetails;
176 bool m_errorDetailsHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace CodePipeline
181} // 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