/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/iot/IoT_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** * <p>Information about an error found in a behavior specification.</p><p><h3>See * Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/ValidationError">AWS * API Reference</a></p> */ class ValidationError { public: AWS_IOT_API ValidationError(); AWS_IOT_API ValidationError(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API ValidationError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The description of an error found in the behaviors.</p> */ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** * <p>The description of an error found in the behaviors.</p> */ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** * <p>The description of an error found in the behaviors.</p> */ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** * <p>The description of an error found in the behaviors.</p> */ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** * <p>The description of an error found in the behaviors.</p> */ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** * <p>The description of an error found in the behaviors.</p> */ inline ValidationError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** * <p>The description of an error found in the behaviors.</p> */ inline ValidationError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** * <p>The description of an error found in the behaviors.</p> */ inline ValidationError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws