AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UniqueProblem.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devicefarm/model/Problem.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DeviceFarm
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DEVICEFARM_API UniqueProblem();
38 AWS_DEVICEFARM_API UniqueProblem(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API UniqueProblem& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline UniqueProblem& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline UniqueProblem& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline UniqueProblem& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const Aws::Vector<Problem>& GetProblems() const{ return m_problems; }
62 inline bool ProblemsHasBeenSet() const { return m_problemsHasBeenSet; }
63 inline void SetProblems(const Aws::Vector<Problem>& value) { m_problemsHasBeenSet = true; m_problems = value; }
64 inline void SetProblems(Aws::Vector<Problem>&& value) { m_problemsHasBeenSet = true; m_problems = std::move(value); }
65 inline UniqueProblem& WithProblems(const Aws::Vector<Problem>& value) { SetProblems(value); return *this;}
66 inline UniqueProblem& WithProblems(Aws::Vector<Problem>&& value) { SetProblems(std::move(value)); return *this;}
67 inline UniqueProblem& AddProblems(const Problem& value) { m_problemsHasBeenSet = true; m_problems.push_back(value); return *this; }
68 inline UniqueProblem& AddProblems(Problem&& value) { m_problemsHasBeenSet = true; m_problems.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_message;
73 bool m_messageHasBeenSet = false;
74
75 Aws::Vector<Problem> m_problems;
76 bool m_problemsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace DeviceFarm
81} // namespace Aws
UniqueProblem & WithProblems(Aws::Vector< Problem > &&value)
const Aws::Vector< Problem > & GetProblems() const
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(const char *value)
UniqueProblem & WithMessage(const Aws::String &value)
void SetMessage(Aws::String &&value)
void SetProblems(const Aws::Vector< Problem > &value)
UniqueProblem & AddProblems(const Problem &value)
AWS_DEVICEFARM_API UniqueProblem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API UniqueProblem(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const Aws::String &value)
UniqueProblem & WithMessage(const char *value)
void SetProblems(Aws::Vector< Problem > &&value)
const Aws::String & GetMessage() const
UniqueProblem & AddProblems(Problem &&value)
UniqueProblem & WithMessage(Aws::String &&value)
UniqueProblem & WithProblems(const Aws::Vector< Problem > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue