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

Provides information about the errors that occurred during the analysis of * the source database.

See Also:

AWS * API Reference

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

The identifier of the source database.

*/ inline const Aws::String& GetDatabaseId() const{ return m_databaseId; } /** *

The identifier of the source database.

*/ inline bool DatabaseIdHasBeenSet() const { return m_databaseIdHasBeenSet; } /** *

The identifier of the source database.

*/ inline void SetDatabaseId(const Aws::String& value) { m_databaseIdHasBeenSet = true; m_databaseId = value; } /** *

The identifier of the source database.

*/ inline void SetDatabaseId(Aws::String&& value) { m_databaseIdHasBeenSet = true; m_databaseId = std::move(value); } /** *

The identifier of the source database.

*/ inline void SetDatabaseId(const char* value) { m_databaseIdHasBeenSet = true; m_databaseId.assign(value); } /** *

The identifier of the source database.

*/ inline BatchStartRecommendationsErrorEntry& WithDatabaseId(const Aws::String& value) { SetDatabaseId(value); return *this;} /** *

The identifier of the source database.

*/ inline BatchStartRecommendationsErrorEntry& WithDatabaseId(Aws::String&& value) { SetDatabaseId(std::move(value)); return *this;} /** *

The identifier of the source database.

*/ inline BatchStartRecommendationsErrorEntry& WithDatabaseId(const char* value) { SetDatabaseId(value); return *this;} /** *

The information about the error.

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

The information about the error.

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

The information about the error.

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

The information about the error.

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

The information about the error.

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

The information about the error.

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

The information about the error.

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

The information about the error.

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

The code of an error that occurred during the analysis of the source * database.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The code of an error that occurred during the analysis of the source * database.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The code of an error that occurred during the analysis of the source * database.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The code of an error that occurred during the analysis of the source * database.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The code of an error that occurred during the analysis of the source * database.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The code of an error that occurred during the analysis of the source * database.

*/ inline BatchStartRecommendationsErrorEntry& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The code of an error that occurred during the analysis of the source * database.

*/ inline BatchStartRecommendationsErrorEntry& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The code of an error that occurred during the analysis of the source * database.

*/ inline BatchStartRecommendationsErrorEntry& WithCode(const char* value) { SetCode(value); return *this;} private: Aws::String m_databaseId; bool m_databaseIdHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws