AWS SDK for C++  0.14.3
AWS SDK for C++
Problem.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace DeviceFarm
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  Problem();
43  Problem(const Aws::Utils::Json::JsonValue& jsonValue);
44  Problem& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const ProblemDetail& GetRun() const{ return m_run; }
51 
55  inline void SetRun(const ProblemDetail& value) { m_runHasBeenSet = true; m_run = value; }
56 
60  inline void SetRun(ProblemDetail&& value) { m_runHasBeenSet = true; m_run = value; }
61 
65  inline Problem& WithRun(const ProblemDetail& value) { SetRun(value); return *this;}
66 
70  inline Problem& WithRun(ProblemDetail&& value) { SetRun(value); return *this;}
71 
75  inline const ProblemDetail& GetJob() const{ return m_job; }
76 
80  inline void SetJob(const ProblemDetail& value) { m_jobHasBeenSet = true; m_job = value; }
81 
85  inline void SetJob(ProblemDetail&& value) { m_jobHasBeenSet = true; m_job = value; }
86 
90  inline Problem& WithJob(const ProblemDetail& value) { SetJob(value); return *this;}
91 
95  inline Problem& WithJob(ProblemDetail&& value) { SetJob(value); return *this;}
96 
100  inline const ProblemDetail& GetSuite() const{ return m_suite; }
101 
105  inline void SetSuite(const ProblemDetail& value) { m_suiteHasBeenSet = true; m_suite = value; }
106 
110  inline void SetSuite(ProblemDetail&& value) { m_suiteHasBeenSet = true; m_suite = value; }
111 
115  inline Problem& WithSuite(const ProblemDetail& value) { SetSuite(value); return *this;}
116 
120  inline Problem& WithSuite(ProblemDetail&& value) { SetSuite(value); return *this;}
121 
125  inline const ProblemDetail& GetTest() const{ return m_test; }
126 
130  inline void SetTest(const ProblemDetail& value) { m_testHasBeenSet = true; m_test = value; }
131 
135  inline void SetTest(ProblemDetail&& value) { m_testHasBeenSet = true; m_test = value; }
136 
140  inline Problem& WithTest(const ProblemDetail& value) { SetTest(value); return *this;}
141 
145  inline Problem& WithTest(ProblemDetail&& value) { SetTest(value); return *this;}
146 
150  inline const Device& GetDevice() const{ return m_device; }
151 
155  inline void SetDevice(const Device& value) { m_deviceHasBeenSet = true; m_device = value; }
156 
160  inline void SetDevice(Device&& value) { m_deviceHasBeenSet = true; m_device = value; }
161 
165  inline Problem& WithDevice(const Device& value) { SetDevice(value); return *this;}
166 
170  inline Problem& WithDevice(Device&& value) { SetDevice(value); return *this;}
171 
180  inline const ExecutionResult& GetResult() const{ return m_result; }
181 
190  inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
191 
200  inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = value; }
201 
210  inline Problem& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
211 
220  inline Problem& WithResult(ExecutionResult&& value) { SetResult(value); return *this;}
221 
225  inline const Aws::String& GetMessage() const{ return m_message; }
226 
230  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
231 
235  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
236 
240  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
241 
245  inline Problem& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
246 
250  inline Problem& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
251 
255  inline Problem& WithMessage(const char* value) { SetMessage(value); return *this;}
256 
257  private:
258  ProblemDetail m_run;
259  bool m_runHasBeenSet;
260  ProblemDetail m_job;
261  bool m_jobHasBeenSet;
262  ProblemDetail m_suite;
263  bool m_suiteHasBeenSet;
264  ProblemDetail m_test;
265  bool m_testHasBeenSet;
266  Device m_device;
267  bool m_deviceHasBeenSet;
268  ExecutionResult m_result;
269  bool m_resultHasBeenSet;
270  Aws::String m_message;
271  bool m_messageHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace DeviceFarm
276 } // namespace Aws
void SetJob(const ProblemDetail &value)
Definition: Problem.h:80
Problem & WithMessage(Aws::String &&value)
Definition: Problem.h:250
#define AWS_DEVICEFARM_API
const Aws::String & GetMessage() const
Definition: Problem.h:225
Problem & WithDevice(const Device &value)
Definition: Problem.h:165
void SetRun(const ProblemDetail &value)
Definition: Problem.h:55
const Device & GetDevice() const
Definition: Problem.h:150
void SetMessage(Aws::String &&value)
Definition: Problem.h:235
void SetRun(ProblemDetail &&value)
Definition: Problem.h:60
Problem & WithSuite(ProblemDetail &&value)
Definition: Problem.h:120
const ProblemDetail & GetSuite() const
Definition: Problem.h:100
void SetDevice(const Device &value)
Definition: Problem.h:155
void SetTest(const ProblemDetail &value)
Definition: Problem.h:130
Problem & WithDevice(Device &&value)
Definition: Problem.h:170
Problem & WithMessage(const char *value)
Definition: Problem.h:255
const ProblemDetail & GetTest() const
Definition: Problem.h:125
void SetMessage(const char *value)
Definition: Problem.h:240
void SetJob(ProblemDetail &&value)
Definition: Problem.h:85
void SetTest(ProblemDetail &&value)
Definition: Problem.h:135
void SetSuite(const ProblemDetail &value)
Definition: Problem.h:105
Problem & WithSuite(const ProblemDetail &value)
Definition: Problem.h:115
void SetResult(ExecutionResult &&value)
Definition: Problem.h:200
Problem & WithTest(const ProblemDetail &value)
Definition: Problem.h:140
void SetMessage(const Aws::String &value)
Definition: Problem.h:230
Problem & WithMessage(const Aws::String &value)
Definition: Problem.h:245
const ProblemDetail & GetJob() const
Definition: Problem.h:75
const ExecutionResult & GetResult() const
Definition: Problem.h:180
Problem & WithRun(const ProblemDetail &value)
Definition: Problem.h:65
Problem & WithTest(ProblemDetail &&value)
Definition: Problem.h:145
Problem & WithResult(ExecutionResult &&value)
Definition: Problem.h:220
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDevice(Device &&value)
Definition: Problem.h:160
const ProblemDetail & GetRun() const
Definition: Problem.h:50
Problem & WithRun(ProblemDetail &&value)
Definition: Problem.h:70
Problem & WithJob(const ProblemDetail &value)
Definition: Problem.h:90
void SetResult(const ExecutionResult &value)
Definition: Problem.h:190
Problem & WithResult(const ExecutionResult &value)
Definition: Problem.h:210
Problem & WithJob(ProblemDetail &&value)
Definition: Problem.h:95
void SetSuite(ProblemDetail &&value)
Definition: Problem.h:110
JSON (JavaScript Object Notation).