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

See Also:

AWS * API Reference

*/ class Messages { public: AWS_MEDIACONNECT_API Messages(); AWS_MEDIACONNECT_API Messages(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONNECT_API Messages& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * A list of errors that might have been generated from processes on this flow. */ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** * A list of errors that might have been generated from processes on this flow. */ inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; } /** * A list of errors that might have been generated from processes on this flow. */ inline void SetErrors(const Aws::Vector& value) { m_errorsHasBeenSet = true; m_errors = value; } /** * A list of errors that might have been generated from processes on this flow. */ inline void SetErrors(Aws::Vector&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); } /** * A list of errors that might have been generated from processes on this flow. */ inline Messages& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** * A list of errors that might have been generated from processes on this flow. */ inline Messages& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** * A list of errors that might have been generated from processes on this flow. */ inline Messages& AddErrors(const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; } /** * A list of errors that might have been generated from processes on this flow. */ inline Messages& AddErrors(Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; } /** * A list of errors that might have been generated from processes on this flow. */ inline Messages& AddErrors(const char* value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; } private: Aws::Vector m_errors; bool m_errorsHasBeenSet = false; }; } // namespace Model } // namespace MediaConnect } // namespace Aws