AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
TestRunSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/AccountTargeting.h>
11#include <aws/resiliencehubv2/model/TestRunStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace resiliencehubv2 {
23namespace Model {
24
31 public:
32 AWS_RESILIENCEHUBV2_API TestRunSummary() = default;
33 AWS_RESILIENCEHUBV2_API TestRunSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API TestRunSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTestRunId() const { return m_testRunId; }
42 inline bool TestRunIdHasBeenSet() const { return m_testRunIdHasBeenSet; }
43 template <typename TestRunIdT = Aws::String>
44 void SetTestRunId(TestRunIdT&& value) {
45 m_testRunIdHasBeenSet = true;
46 m_testRunId = std::forward<TestRunIdT>(value);
47 }
48 template <typename TestRunIdT = Aws::String>
49 TestRunSummary& WithTestRunId(TestRunIdT&& value) {
50 SetTestRunId(std::forward<TestRunIdT>(value));
51 return *this;
52 }
54
56
59 inline TestRunStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(TestRunStatus value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
76 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
77 template <typename StartedAtT = Aws::Utils::DateTime>
78 void SetStartedAt(StartedAtT&& value) {
79 m_startedAtHasBeenSet = true;
80 m_startedAt = std::forward<StartedAtT>(value);
81 }
82 template <typename StartedAtT = Aws::Utils::DateTime>
83 TestRunSummary& WithStartedAt(StartedAtT&& value) {
84 SetStartedAt(std::forward<StartedAtT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
94 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
95 template <typename EndedAtT = Aws::Utils::DateTime>
96 void SetEndedAt(EndedAtT&& value) {
97 m_endedAtHasBeenSet = true;
98 m_endedAt = std::forward<EndedAtT>(value);
99 }
100 template <typename EndedAtT = Aws::Utils::DateTime>
101 TestRunSummary& WithEndedAt(EndedAtT&& value) {
102 SetEndedAt(std::forward<EndedAtT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetTestTemplateArn() const { return m_testTemplateArn; }
112 inline bool TestTemplateArnHasBeenSet() const { return m_testTemplateArnHasBeenSet; }
113 template <typename TestTemplateArnT = Aws::String>
114 void SetTestTemplateArn(TestTemplateArnT&& value) {
115 m_testTemplateArnHasBeenSet = true;
116 m_testTemplateArn = std::forward<TestTemplateArnT>(value);
117 }
118 template <typename TestTemplateArnT = Aws::String>
119 TestRunSummary& WithTestTemplateArn(TestTemplateArnT&& value) {
120 SetTestTemplateArn(std::forward<TestTemplateArnT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
130 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
131 template <typename ServiceArnT = Aws::String>
132 void SetServiceArn(ServiceArnT&& value) {
133 m_serviceArnHasBeenSet = true;
134 m_serviceArn = std::forward<ServiceArnT>(value);
135 }
136 template <typename ServiceArnT = Aws::String>
137 TestRunSummary& WithServiceArn(ServiceArnT&& value) {
138 SetServiceArn(std::forward<ServiceArnT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
149 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
150 template <typename ErrorMessageT = Aws::String>
151 void SetErrorMessage(ErrorMessageT&& value) {
152 m_errorMessageHasBeenSet = true;
153 m_errorMessage = std::forward<ErrorMessageT>(value);
154 }
155 template <typename ErrorMessageT = Aws::String>
156 TestRunSummary& WithErrorMessage(ErrorMessageT&& value) {
157 SetErrorMessage(std::forward<ErrorMessageT>(value));
158 return *this;
159 }
161
163
167 inline AccountTargeting GetAccountTargeting() const { return m_accountTargeting; }
168 inline bool AccountTargetingHasBeenSet() const { return m_accountTargetingHasBeenSet; }
170 m_accountTargetingHasBeenSet = true;
171 m_accountTargeting = value;
172 }
174 SetAccountTargeting(value);
175 return *this;
176 }
178 private:
179 Aws::String m_testRunId;
180
182
183 Aws::Utils::DateTime m_startedAt{};
184
185 Aws::Utils::DateTime m_endedAt{};
186
187 Aws::String m_testTemplateArn;
188
189 Aws::String m_serviceArn;
190
191 Aws::String m_errorMessage;
192
194 bool m_testRunIdHasBeenSet = false;
195 bool m_statusHasBeenSet = false;
196 bool m_startedAtHasBeenSet = false;
197 bool m_endedAtHasBeenSet = false;
198 bool m_testTemplateArnHasBeenSet = false;
199 bool m_serviceArnHasBeenSet = false;
200 bool m_errorMessageHasBeenSet = false;
201 bool m_accountTargetingHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace resiliencehubv2
206} // namespace Aws
TestRunSummary & WithErrorMessage(ErrorMessageT &&value)
void SetErrorMessage(ErrorMessageT &&value)
TestRunSummary & WithEndedAt(EndedAtT &&value)
const Aws::String & GetErrorMessage() const
AWS_RESILIENCEHUBV2_API TestRunSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndedAt() const
AWS_RESILIENCEHUBV2_API TestRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TestRunSummary & WithStartedAt(StartedAtT &&value)
void SetAccountTargeting(AccountTargeting value)
const Aws::String & GetTestRunId() const
void SetTestTemplateArn(TestTemplateArnT &&value)
TestRunSummary & WithServiceArn(ServiceArnT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API TestRunSummary()=default
TestRunSummary & WithTestTemplateArn(TestTemplateArnT &&value)
const Aws::String & GetServiceArn() const
TestRunSummary & WithStatus(TestRunStatus value)
const Aws::String & GetTestTemplateArn() const
TestRunSummary & WithTestRunId(TestRunIdT &&value)
TestRunSummary & WithAccountTargeting(AccountTargeting value)
const Aws::Utils::DateTime & GetStartedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue