/** * 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 mgn { namespace Model { /** *

Export task error.

See Also:

AWS * API Reference

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

Export task error data.

*/ inline const ExportErrorData& GetErrorData() const{ return m_errorData; } /** *

Export task error data.

*/ inline bool ErrorDataHasBeenSet() const { return m_errorDataHasBeenSet; } /** *

Export task error data.

*/ inline void SetErrorData(const ExportErrorData& value) { m_errorDataHasBeenSet = true; m_errorData = value; } /** *

Export task error data.

*/ inline void SetErrorData(ExportErrorData&& value) { m_errorDataHasBeenSet = true; m_errorData = std::move(value); } /** *

Export task error data.

*/ inline ExportTaskError& WithErrorData(const ExportErrorData& value) { SetErrorData(value); return *this;} /** *

Export task error data.

*/ inline ExportTaskError& WithErrorData(ExportErrorData&& value) { SetErrorData(std::move(value)); return *this;} /** *

Export task error datetime.

*/ inline const Aws::String& GetErrorDateTime() const{ return m_errorDateTime; } /** *

Export task error datetime.

*/ inline bool ErrorDateTimeHasBeenSet() const { return m_errorDateTimeHasBeenSet; } /** *

Export task error datetime.

*/ inline void SetErrorDateTime(const Aws::String& value) { m_errorDateTimeHasBeenSet = true; m_errorDateTime = value; } /** *

Export task error datetime.

*/ inline void SetErrorDateTime(Aws::String&& value) { m_errorDateTimeHasBeenSet = true; m_errorDateTime = std::move(value); } /** *

Export task error datetime.

*/ inline void SetErrorDateTime(const char* value) { m_errorDateTimeHasBeenSet = true; m_errorDateTime.assign(value); } /** *

Export task error datetime.

*/ inline ExportTaskError& WithErrorDateTime(const Aws::String& value) { SetErrorDateTime(value); return *this;} /** *

Export task error datetime.

*/ inline ExportTaskError& WithErrorDateTime(Aws::String&& value) { SetErrorDateTime(std::move(value)); return *this;} /** *

Export task error datetime.

*/ inline ExportTaskError& WithErrorDateTime(const char* value) { SetErrorDateTime(value); return *this;} private: ExportErrorData m_errorData; bool m_errorDataHasBeenSet = false; Aws::String m_errorDateTime; bool m_errorDateTimeHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws