/** * 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 { /** *

Object containing details about the servers imported by Application * Discovery Service

See Also:

AWS * API Reference

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

Type of operating system for the servers.

*/ inline const ServerOsType& GetServerOsType() const{ return m_serverOsType; } /** *

Type of operating system for the servers.

*/ inline bool ServerOsTypeHasBeenSet() const { return m_serverOsTypeHasBeenSet; } /** *

Type of operating system for the servers.

*/ inline void SetServerOsType(const ServerOsType& value) { m_serverOsTypeHasBeenSet = true; m_serverOsType = value; } /** *

Type of operating system for the servers.

*/ inline void SetServerOsType(ServerOsType&& value) { m_serverOsTypeHasBeenSet = true; m_serverOsType = std::move(value); } /** *

Type of operating system for the servers.

*/ inline ServerSummary& WithServerOsType(const ServerOsType& value) { SetServerOsType(value); return *this;} /** *

Type of operating system for the servers.

*/ inline ServerSummary& WithServerOsType(ServerOsType&& value) { SetServerOsType(std::move(value)); return *this;} /** *

Number of servers.

*/ inline int GetCount() const{ return m_count; } /** *

Number of servers.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

Number of servers.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

Number of servers.

*/ inline ServerSummary& WithCount(int value) { SetCount(value); return *this;} private: ServerOsType m_serverOsType; bool m_serverOsTypeHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws