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

Contains the summary of anti-patterns and their severity.

See * Also:

AWS * API Reference

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

Contains the count of anti-patterns.

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

Contains the count of anti-patterns.

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

Contains the count of anti-patterns.

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

Contains the count of anti-patterns.

*/ inline AntipatternSeveritySummary& WithCount(int value) { SetCount(value); return *this;} /** *

Contains the severity of anti-patterns.

*/ inline const Severity& GetSeverity() const{ return m_severity; } /** *

Contains the severity of anti-patterns.

*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *

Contains the severity of anti-patterns.

*/ inline void SetSeverity(const Severity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *

Contains the severity of anti-patterns.

*/ inline void SetSeverity(Severity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *

Contains the severity of anti-patterns.

*/ inline AntipatternSeveritySummary& WithSeverity(const Severity& value) { SetSeverity(value); return *this;} /** *

Contains the severity of anti-patterns.

*/ inline AntipatternSeveritySummary& WithSeverity(Severity&& value) { SetSeverity(std::move(value)); return *this;} private: int m_count; bool m_countHasBeenSet = false; Severity m_severity; bool m_severityHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws