AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRun(const ProblemDetail& value) { m_runHasBeenSet = true; m_run = value; }
50 inline void SetRun(ProblemDetail&& value) { m_runHasBeenSet = true; m_run = std::move(value); }
51 inline Problem& WithRun(const ProblemDetail& value) { SetRun(value); return *this;}
52 inline Problem& WithRun(ProblemDetail&& value) { SetRun(std::move(value)); return *this;}
54
56
59 inline const ProblemDetail& GetJob() const{ return m_job; }
60 inline bool JobHasBeenSet() const { return m_jobHasBeenSet; }
61 inline void SetJob(const ProblemDetail& value) { m_jobHasBeenSet = true; m_job = value; }
62 inline void SetJob(ProblemDetail&& value) { m_jobHasBeenSet = true; m_job = std::move(value); }
63 inline Problem& WithJob(const ProblemDetail& value) { SetJob(value); return *this;}
64 inline Problem& WithJob(ProblemDetail&& value) { SetJob(std::move(value)); return *this;}
66
68
71 inline const ProblemDetail& GetSuite() const{ return m_suite; }
72 inline bool SuiteHasBeenSet() const { return m_suiteHasBeenSet; }
73 inline void SetSuite(const ProblemDetail& value) { m_suiteHasBeenSet = true; m_suite = value; }
74 inline void SetSuite(ProblemDetail&& value) { m_suiteHasBeenSet = true; m_suite = std::move(value); }
75 inline Problem& WithSuite(const ProblemDetail& value) { SetSuite(value); return *this;}
76 inline Problem& WithSuite(ProblemDetail&& value) { SetSuite(std::move(value)); return *this;}
78
80
83 inline const ProblemDetail& GetTest() const{ return m_test; }
84 inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
85 inline void SetTest(const ProblemDetail& value) { m_testHasBeenSet = true; m_test = value; }
86 inline void SetTest(ProblemDetail&& value) { m_testHasBeenSet = true; m_test = std::move(value); }
87 inline Problem& WithTest(const ProblemDetail& value) { SetTest(value); return *this;}
88 inline Problem& WithTest(ProblemDetail&& value) { SetTest(std::move(value)); return *this;}
90
92
95 inline const Device& GetDevice() const{ return m_device; }
96 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
97 inline void SetDevice(const Device& value) { m_deviceHasBeenSet = true; m_device = value; }
98 inline void SetDevice(Device&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
99 inline Problem& WithDevice(const Device& value) { SetDevice(value); return *this;}
100 inline Problem& WithDevice(Device&& value) { SetDevice(std::move(value)); return *this;}
102
104
110 inline const ExecutionResult& GetResult() const{ return m_result; }
111 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
112 inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
113 inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
114 inline Problem& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
115 inline Problem& WithResult(ExecutionResult&& value) { SetResult(std::move(value)); return *this;}
117
119
122 inline const Aws::String& GetMessage() const{ return m_message; }
123 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
124 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
125 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
126 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
127 inline Problem& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
128 inline Problem& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
129 inline Problem& WithMessage(const char* value) { SetMessage(value); return *this;}
131 private:
132
133 ProblemDetail m_run;
134 bool m_runHasBeenSet = false;
135
136 ProblemDetail m_job;
137 bool m_jobHasBeenSet = false;
138
139 ProblemDetail m_suite;
140 bool m_suiteHasBeenSet = false;
141
142 ProblemDetail m_test;
143 bool m_testHasBeenSet = false;
144
145 Device m_device;
146 bool m_deviceHasBeenSet = false;
147
148 ExecutionResult m_result;
149 bool m_resultHasBeenSet = false;
150
151 Aws::String m_message;
152 bool m_messageHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace DeviceFarm
157} // namespace Aws
void SetDevice(Device &&value)
Definition Problem.h:98
Problem & WithMessage(Aws::String &&value)
Definition Problem.h:128
const Device & GetDevice() const
Definition Problem.h:95
void SetTest(const ProblemDetail &value)
Definition Problem.h:85
void SetRun(const ProblemDetail &value)
Definition Problem.h:49
Problem & WithDevice(Device &&value)
Definition Problem.h:100
const ProblemDetail & GetTest() const
Definition Problem.h:83
const Aws::String & GetMessage() const
Definition Problem.h:122
AWS_DEVICEFARM_API Problem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJob(const ProblemDetail &value)
Definition Problem.h:61
const ProblemDetail & GetSuite() const
Definition Problem.h:71
Problem & WithTest(const ProblemDetail &value)
Definition Problem.h:87
Problem & WithRun(const ProblemDetail &value)
Definition Problem.h:51
void SetResult(const ExecutionResult &value)
Definition Problem.h:112
Problem & WithRun(ProblemDetail &&value)
Definition Problem.h:52
void SetResult(ExecutionResult &&value)
Definition Problem.h:113
const ProblemDetail & GetRun() const
Definition Problem.h:47
Problem & WithResult(ExecutionResult &&value)
Definition Problem.h:115
void SetSuite(ProblemDetail &&value)
Definition Problem.h:74
void SetSuite(const ProblemDetail &value)
Definition Problem.h:73
Problem & WithResult(const ExecutionResult &value)
Definition Problem.h:114
Problem & WithJob(const ProblemDetail &value)
Definition Problem.h:63
Problem & WithSuite(ProblemDetail &&value)
Definition Problem.h:76
void SetMessage(Aws::String &&value)
Definition Problem.h:125
AWS_DEVICEFARM_API Problem()
Problem & WithDevice(const Device &value)
Definition Problem.h:99
const ExecutionResult & GetResult() const
Definition Problem.h:110
void SetMessage(const char *value)
Definition Problem.h:126
void SetTest(ProblemDetail &&value)
Definition Problem.h:86
Problem & WithMessage(const Aws::String &value)
Definition Problem.h:127
Problem & WithTest(ProblemDetail &&value)
Definition Problem.h:88
Problem & WithJob(ProblemDetail &&value)
Definition Problem.h:64
void SetDevice(const Device &value)
Definition Problem.h:97
Problem & WithSuite(const ProblemDetail &value)
Definition Problem.h:75
void SetRun(ProblemDetail &&value)
Definition Problem.h:50
const ProblemDetail & GetJob() const
Definition Problem.h:59
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
Problem & WithMessage(const char *value)
Definition Problem.h:129
void SetJob(ProblemDetail &&value)
Definition Problem.h:62
AWS_DEVICEFARM_API Problem(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const Aws::String &value)
Definition Problem.h:124
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue