AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Problem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
9#include <aws/devicefarm/model/Device.h>
10#include <aws/devicefarm/model/ExecutionResult.h>
11#include <aws/devicefarm/model/ProblemDetail.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm {
23namespace Model {
24
30class Problem {
31 public:
32 AWS_DEVICEFARM_API Problem() = default;
33 AWS_DEVICEFARM_API Problem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Problem& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const ProblemDetail& GetRun() const { return m_run; }
42 inline bool RunHasBeenSet() const { return m_runHasBeenSet; }
43 template <typename RunT = ProblemDetail>
44 void SetRun(RunT&& value) {
45 m_runHasBeenSet = true;
46 m_run = std::forward<RunT>(value);
47 }
48 template <typename RunT = ProblemDetail>
49 Problem& WithRun(RunT&& value) {
50 SetRun(std::forward<RunT>(value));
51 return *this;
52 }
54
56
59 inline const ProblemDetail& GetJob() const { return m_job; }
60 inline bool JobHasBeenSet() const { return m_jobHasBeenSet; }
61 template <typename JobT = ProblemDetail>
62 void SetJob(JobT&& value) {
63 m_jobHasBeenSet = true;
64 m_job = std::forward<JobT>(value);
65 }
66 template <typename JobT = ProblemDetail>
67 Problem& WithJob(JobT&& value) {
68 SetJob(std::forward<JobT>(value));
69 return *this;
70 }
72
74
77 inline const ProblemDetail& GetSuite() const { return m_suite; }
78 inline bool SuiteHasBeenSet() const { return m_suiteHasBeenSet; }
79 template <typename SuiteT = ProblemDetail>
80 void SetSuite(SuiteT&& value) {
81 m_suiteHasBeenSet = true;
82 m_suite = std::forward<SuiteT>(value);
83 }
84 template <typename SuiteT = ProblemDetail>
85 Problem& WithSuite(SuiteT&& value) {
86 SetSuite(std::forward<SuiteT>(value));
87 return *this;
88 }
90
92
95 inline const ProblemDetail& GetTest() const { return m_test; }
96 inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
97 template <typename TestT = ProblemDetail>
98 void SetTest(TestT&& value) {
99 m_testHasBeenSet = true;
100 m_test = std::forward<TestT>(value);
101 }
102 template <typename TestT = ProblemDetail>
103 Problem& WithTest(TestT&& value) {
104 SetTest(std::forward<TestT>(value));
105 return *this;
106 }
108
110
113 inline const Device& GetDevice() const { return m_device; }
114 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
115 template <typename DeviceT = Device>
116 void SetDevice(DeviceT&& value) {
117 m_deviceHasBeenSet = true;
118 m_device = std::forward<DeviceT>(value);
119 }
120 template <typename DeviceT = Device>
121 Problem& WithDevice(DeviceT&& value) {
122 SetDevice(std::forward<DeviceT>(value));
123 return *this;
124 }
126
128
134 inline ExecutionResult GetResult() const { return m_result; }
135 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
136 inline void SetResult(ExecutionResult value) {
137 m_resultHasBeenSet = true;
138 m_result = value;
139 }
141 SetResult(value);
142 return *this;
143 }
145
147
150 inline const Aws::String& GetMessage() const { return m_message; }
151 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
152 template <typename MessageT = Aws::String>
153 void SetMessage(MessageT&& value) {
154 m_messageHasBeenSet = true;
155 m_message = std::forward<MessageT>(value);
156 }
157 template <typename MessageT = Aws::String>
158 Problem& WithMessage(MessageT&& value) {
159 SetMessage(std::forward<MessageT>(value));
160 return *this;
161 }
163 private:
164 ProblemDetail m_run;
165
166 ProblemDetail m_job;
167
168 ProblemDetail m_suite;
169
170 ProblemDetail m_test;
171
172 Device m_device;
173
175
176 Aws::String m_message;
177 bool m_runHasBeenSet = false;
178 bool m_jobHasBeenSet = false;
179 bool m_suiteHasBeenSet = false;
180 bool m_testHasBeenSet = false;
181 bool m_deviceHasBeenSet = false;
182 bool m_resultHasBeenSet = false;
183 bool m_messageHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace DeviceFarm
188} // namespace Aws
const Device & GetDevice() const
Definition Problem.h:113
const ProblemDetail & GetTest() const
Definition Problem.h:95
Problem & WithResult(ExecutionResult value)
Definition Problem.h:140
const Aws::String & GetMessage() const
Definition Problem.h:150
Problem & WithSuite(SuiteT &&value)
Definition Problem.h:85
AWS_DEVICEFARM_API Problem & operator=(Aws::Utils::Json::JsonView jsonValue)
const ProblemDetail & GetSuite() const
Definition Problem.h:77
void SetMessage(MessageT &&value)
Definition Problem.h:153
void SetJob(JobT &&value)
Definition Problem.h:62
Problem & WithTest(TestT &&value)
Definition Problem.h:103
void SetSuite(SuiteT &&value)
Definition Problem.h:80
Problem & WithDevice(DeviceT &&value)
Definition Problem.h:121
AWS_DEVICEFARM_API Problem()=default
void SetRun(RunT &&value)
Definition Problem.h:44
void SetTest(TestT &&value)
Definition Problem.h:98
Problem & WithJob(JobT &&value)
Definition Problem.h:67
Problem & WithMessage(MessageT &&value)
Definition Problem.h:158
const ProblemDetail & GetRun() const
Definition Problem.h:41
void SetResult(ExecutionResult value)
Definition Problem.h:136
void SetDevice(DeviceT &&value)
Definition Problem.h:116
Problem & WithRun(RunT &&value)
Definition Problem.h:49
ExecutionResult GetResult() const
Definition Problem.h:134
const ProblemDetail & GetJob() const
Definition Problem.h:59
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API Problem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue