AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Problem.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/model/ProblemDetail.h>
9#include <aws/devicefarm/model/Device.h>
10#include <aws/devicefarm/model/ExecutionResult.h>
11#include <aws/core/utils/memory/stl/AWSString.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 DeviceFarm
25{
26namespace Model
27{
28
34 class Problem
35 {
36 public:
37 AWS_DEVICEFARM_API Problem() = default;
38 AWS_DEVICEFARM_API Problem(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API Problem& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ProblemDetail& GetRun() const { return m_run; }
48 inline bool RunHasBeenSet() const { return m_runHasBeenSet; }
49 template<typename RunT = ProblemDetail>
50 void SetRun(RunT&& value) { m_runHasBeenSet = true; m_run = std::forward<RunT>(value); }
51 template<typename RunT = ProblemDetail>
52 Problem& WithRun(RunT&& value) { SetRun(std::forward<RunT>(value)); return *this;}
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) { m_jobHasBeenSet = true; m_job = std::forward<JobT>(value); }
63 template<typename JobT = ProblemDetail>
64 Problem& WithJob(JobT&& value) { SetJob(std::forward<JobT>(value)); return *this;}
66
68
71 inline const ProblemDetail& GetSuite() const { return m_suite; }
72 inline bool SuiteHasBeenSet() const { return m_suiteHasBeenSet; }
73 template<typename SuiteT = ProblemDetail>
74 void SetSuite(SuiteT&& value) { m_suiteHasBeenSet = true; m_suite = std::forward<SuiteT>(value); }
75 template<typename SuiteT = ProblemDetail>
76 Problem& WithSuite(SuiteT&& value) { SetSuite(std::forward<SuiteT>(value)); return *this;}
78
80
83 inline const ProblemDetail& GetTest() const { return m_test; }
84 inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
85 template<typename TestT = ProblemDetail>
86 void SetTest(TestT&& value) { m_testHasBeenSet = true; m_test = std::forward<TestT>(value); }
87 template<typename TestT = ProblemDetail>
88 Problem& WithTest(TestT&& value) { SetTest(std::forward<TestT>(value)); return *this;}
90
92
95 inline const Device& GetDevice() const { return m_device; }
96 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
97 template<typename DeviceT = Device>
98 void SetDevice(DeviceT&& value) { m_deviceHasBeenSet = true; m_device = std::forward<DeviceT>(value); }
99 template<typename DeviceT = Device>
100 Problem& WithDevice(DeviceT&& value) { SetDevice(std::forward<DeviceT>(value)); return *this;}
102
104
110 inline ExecutionResult GetResult() const { return m_result; }
111 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
112 inline void SetResult(ExecutionResult value) { m_resultHasBeenSet = true; m_result = value; }
113 inline Problem& WithResult(ExecutionResult value) { SetResult(value); return *this;}
115
117
120 inline const Aws::String& GetMessage() const { return m_message; }
121 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
122 template<typename MessageT = Aws::String>
123 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
124 template<typename MessageT = Aws::String>
125 Problem& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
127 private:
128
129 ProblemDetail m_run;
130 bool m_runHasBeenSet = false;
131
132 ProblemDetail m_job;
133 bool m_jobHasBeenSet = false;
134
135 ProblemDetail m_suite;
136 bool m_suiteHasBeenSet = false;
137
138 ProblemDetail m_test;
139 bool m_testHasBeenSet = false;
140
141 Device m_device;
142 bool m_deviceHasBeenSet = false;
143
145 bool m_resultHasBeenSet = false;
146
147 Aws::String m_message;
148 bool m_messageHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace DeviceFarm
153} // namespace Aws
const Device & GetDevice() const
Definition Problem.h:95
const ProblemDetail & GetTest() const
Definition Problem.h:83
Problem & WithResult(ExecutionResult value)
Definition Problem.h:113
const Aws::String & GetMessage() const
Definition Problem.h:120
Problem & WithSuite(SuiteT &&value)
Definition Problem.h:76
AWS_DEVICEFARM_API Problem & operator=(Aws::Utils::Json::JsonView jsonValue)
const ProblemDetail & GetSuite() const
Definition Problem.h:71
void SetMessage(MessageT &&value)
Definition Problem.h:123
void SetJob(JobT &&value)
Definition Problem.h:62
Problem & WithTest(TestT &&value)
Definition Problem.h:88
void SetSuite(SuiteT &&value)
Definition Problem.h:74
Problem & WithDevice(DeviceT &&value)
Definition Problem.h:100
AWS_DEVICEFARM_API Problem()=default
void SetRun(RunT &&value)
Definition Problem.h:50
void SetTest(TestT &&value)
Definition Problem.h:86
Problem & WithJob(JobT &&value)
Definition Problem.h:64
Problem & WithMessage(MessageT &&value)
Definition Problem.h:125
const ProblemDetail & GetRun() const
Definition Problem.h:47
void SetResult(ExecutionResult value)
Definition Problem.h:112
void SetDevice(DeviceT &&value)
Definition Problem.h:98
Problem & WithRun(RunT &&value)
Definition Problem.h:52
ExecutionResult GetResult() const
Definition Problem.h:110
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