AWS SDK for C++  0.12.9
AWS SDK for C++
UniqueProblem.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DeviceFarm
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  UniqueProblem();
43  UniqueProblem& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetMessage() const{ return m_message; }
50 
54  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
55 
59  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
60 
64  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 
69  inline UniqueProblem& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
70 
74  inline UniqueProblem& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
75 
79  inline UniqueProblem& WithMessage(const char* value) { SetMessage(value); return *this;}
80 
84  inline const Aws::Vector<Problem>& GetProblems() const{ return m_problems; }
85 
89  inline void SetProblems(const Aws::Vector<Problem>& value) { m_problemsHasBeenSet = true; m_problems = value; }
90 
94  inline void SetProblems(Aws::Vector<Problem>&& value) { m_problemsHasBeenSet = true; m_problems = value; }
95 
99  inline UniqueProblem& WithProblems(const Aws::Vector<Problem>& value) { SetProblems(value); return *this;}
100 
104  inline UniqueProblem& WithProblems(Aws::Vector<Problem>&& value) { SetProblems(value); return *this;}
105 
109  inline UniqueProblem& AddProblems(const Problem& value) { m_problemsHasBeenSet = true; m_problems.push_back(value); return *this; }
110 
114  inline UniqueProblem& AddProblems(Problem&& value) { m_problemsHasBeenSet = true; m_problems.push_back(value); return *this; }
115 
116  private:
117  Aws::String m_message;
118  bool m_messageHasBeenSet;
119  Aws::Vector<Problem> m_problems;
120  bool m_problemsHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace DeviceFarm
125 } // namespace Aws
#define AWS_DEVICEFARM_API
UniqueProblem & WithMessage(Aws::String &&value)
Definition: UniqueProblem.h:74
void SetMessage(const char *value)
Definition: UniqueProblem.h:64
UniqueProblem & AddProblems(const Problem &value)
const Aws::String & GetMessage() const
Definition: UniqueProblem.h:49
void SetMessage(const Aws::String &value)
Definition: UniqueProblem.h:54
UniqueProblem & WithMessage(const Aws::String &value)
Definition: UniqueProblem.h:69
void SetProblems(const Aws::Vector< Problem > &value)
Definition: UniqueProblem.h:89
void SetMessage(Aws::String &&value)
Definition: UniqueProblem.h:59
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UniqueProblem & WithProblems(Aws::Vector< Problem > &&value)
void SetProblems(Aws::Vector< Problem > &&value)
Definition: UniqueProblem.h:94
UniqueProblem & AddProblems(Problem &&value)
UniqueProblem & WithProblems(const Aws::Vector< Problem > &value)
Definition: UniqueProblem.h:99
UniqueProblem & WithMessage(const char *value)
Definition: UniqueProblem.h:79
const Aws::Vector< Problem > & GetProblems() const
Definition: UniqueProblem.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).