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

The error in server analysis.

See Also:

AWS * API Reference

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

The error category of server analysis.

*/ inline const ServerErrorCategory& GetServerErrorCategory() const{ return m_serverErrorCategory; } /** *

The error category of server analysis.

*/ inline bool ServerErrorCategoryHasBeenSet() const { return m_serverErrorCategoryHasBeenSet; } /** *

The error category of server analysis.

*/ inline void SetServerErrorCategory(const ServerErrorCategory& value) { m_serverErrorCategoryHasBeenSet = true; m_serverErrorCategory = value; } /** *

The error category of server analysis.

*/ inline void SetServerErrorCategory(ServerErrorCategory&& value) { m_serverErrorCategoryHasBeenSet = true; m_serverErrorCategory = std::move(value); } /** *

The error category of server analysis.

*/ inline ServerError& WithServerErrorCategory(const ServerErrorCategory& value) { SetServerErrorCategory(value); return *this;} /** *

The error category of server analysis.

*/ inline ServerError& WithServerErrorCategory(ServerErrorCategory&& value) { SetServerErrorCategory(std::move(value)); return *this;} private: ServerErrorCategory m_serverErrorCategory; bool m_serverErrorCategoryHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws