AWS SDK for C++  1.9.160
AWS SDK for C++
UniqueProblem.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace DeviceFarm
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetMessage() const{ return m_message; }
47 
51  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
52 
56  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
57 
61  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 
66  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
67 
71  inline UniqueProblem& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
72 
76  inline UniqueProblem& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
77 
81  inline UniqueProblem& WithMessage(const char* value) { SetMessage(value); return *this;}
82 
83 
87  inline const Aws::Vector<Problem>& GetProblems() const{ return m_problems; }
88 
92  inline bool ProblemsHasBeenSet() const { return m_problemsHasBeenSet; }
93 
97  inline void SetProblems(const Aws::Vector<Problem>& value) { m_problemsHasBeenSet = true; m_problems = value; }
98 
102  inline void SetProblems(Aws::Vector<Problem>&& value) { m_problemsHasBeenSet = true; m_problems = std::move(value); }
103 
107  inline UniqueProblem& WithProblems(const Aws::Vector<Problem>& value) { SetProblems(value); return *this;}
108 
112  inline UniqueProblem& WithProblems(Aws::Vector<Problem>&& value) { SetProblems(std::move(value)); return *this;}
113 
117  inline UniqueProblem& AddProblems(const Problem& value) { m_problemsHasBeenSet = true; m_problems.push_back(value); return *this; }
118 
122  inline UniqueProblem& AddProblems(Problem&& value) { m_problemsHasBeenSet = true; m_problems.push_back(std::move(value)); return *this; }
123 
124  private:
125 
126  Aws::String m_message;
127  bool m_messageHasBeenSet;
128 
129  Aws::Vector<Problem> m_problems;
130  bool m_problemsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace DeviceFarm
135 } // namespace Aws
Problem.h
Aws::DeviceFarm::Model::UniqueProblem::SetMessage
void SetMessage(const char *value)
Definition: UniqueProblem.h:66
Aws::DeviceFarm::Model::UniqueProblem::UniqueProblem
UniqueProblem()
Aws::DeviceFarm::Model::UniqueProblem::operator=
UniqueProblem & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::UniqueProblem::UniqueProblem
UniqueProblem(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::UniqueProblem::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: UniqueProblem.h:51
Aws::DeviceFarm::Model::UniqueProblem::WithProblems
UniqueProblem & WithProblems(const Aws::Vector< Problem > &value)
Definition: UniqueProblem.h:107
Aws::DeviceFarm::Model::UniqueProblem::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::UniqueProblem::SetProblems
void SetProblems(const Aws::Vector< Problem > &value)
Definition: UniqueProblem.h:97
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::DeviceFarm::Model::UniqueProblem::ProblemsHasBeenSet
bool ProblemsHasBeenSet() const
Definition: UniqueProblem.h:92
Aws::DeviceFarm::Model::UniqueProblem::WithMessage
UniqueProblem & WithMessage(Aws::String &&value)
Definition: UniqueProblem.h:76
Aws::DeviceFarm::Model::UniqueProblem::WithMessage
UniqueProblem & WithMessage(const char *value)
Definition: UniqueProblem.h:81
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::UniqueProblem::SetMessage
void SetMessage(Aws::String &&value)
Definition: UniqueProblem.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::UniqueProblem::AddProblems
UniqueProblem & AddProblems(Problem &&value)
Definition: UniqueProblem.h:122
Aws::DeviceFarm::Model::UniqueProblem::SetProblems
void SetProblems(Aws::Vector< Problem > &&value)
Definition: UniqueProblem.h:102
Aws::DeviceFarm::Model::Problem
Definition: Problem.h:35
Aws::DeviceFarm::Model::UniqueProblem::WithMessage
UniqueProblem & WithMessage(const Aws::String &value)
Definition: UniqueProblem.h:71
Aws::DeviceFarm::Model::UniqueProblem::WithProblems
UniqueProblem & WithProblems(Aws::Vector< Problem > &&value)
Definition: UniqueProblem.h:112
Aws::DeviceFarm::Model::UniqueProblem::SetMessage
void SetMessage(const Aws::String &value)
Definition: UniqueProblem.h:56
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::UniqueProblem::GetMessage
const Aws::String & GetMessage() const
Definition: UniqueProblem.h:46
Aws::DeviceFarm::Model::UniqueProblem::AddProblems
UniqueProblem & AddProblems(const Problem &value)
Definition: UniqueProblem.h:117
Aws::DeviceFarm::Model::UniqueProblem::GetProblems
const Aws::Vector< Problem > & GetProblems() const
Definition: UniqueProblem.h:87
Aws::DeviceFarm::Model::UniqueProblem
Definition: UniqueProblem.h:35