/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DeviceFarm { namespace Model { /** *

A collection of one or more problems, grouped by their result.

See * Also:

AWS * API Reference

*/ class UniqueProblem { public: AWS_DEVICEFARM_API UniqueProblem(); AWS_DEVICEFARM_API UniqueProblem(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API UniqueProblem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A message about the unique problems' result.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message about the unique problems' result.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message about the unique problems' result.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message about the unique problems' result.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message about the unique problems' result.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message about the unique problems' result.

*/ inline UniqueProblem& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message about the unique problems' result.

*/ inline UniqueProblem& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message about the unique problems' result.

*/ inline UniqueProblem& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Information about the problems.

*/ inline const Aws::Vector& GetProblems() const{ return m_problems; } /** *

Information about the problems.

*/ inline bool ProblemsHasBeenSet() const { return m_problemsHasBeenSet; } /** *

Information about the problems.

*/ inline void SetProblems(const Aws::Vector& value) { m_problemsHasBeenSet = true; m_problems = value; } /** *

Information about the problems.

*/ inline void SetProblems(Aws::Vector&& value) { m_problemsHasBeenSet = true; m_problems = std::move(value); } /** *

Information about the problems.

*/ inline UniqueProblem& WithProblems(const Aws::Vector& value) { SetProblems(value); return *this;} /** *

Information about the problems.

*/ inline UniqueProblem& WithProblems(Aws::Vector&& value) { SetProblems(std::move(value)); return *this;} /** *

Information about the problems.

*/ inline UniqueProblem& AddProblems(const Problem& value) { m_problemsHasBeenSet = true; m_problems.push_back(value); return *this; } /** *

Information about the problems.

*/ inline UniqueProblem& AddProblems(Problem&& value) { m_problemsHasBeenSet = true; m_problems.push_back(std::move(value)); return *this; } private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_problems; bool m_problemsHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws