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

A summary of resources that aren't compliant. The summary is organized * according to resource type.

See Also:

AWS * API Reference

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

The total number of compliance items that aren't compliant.

*/ inline int GetNonCompliantCount() const{ return m_nonCompliantCount; } /** *

The total number of compliance items that aren't compliant.

*/ inline bool NonCompliantCountHasBeenSet() const { return m_nonCompliantCountHasBeenSet; } /** *

The total number of compliance items that aren't compliant.

*/ inline void SetNonCompliantCount(int value) { m_nonCompliantCountHasBeenSet = true; m_nonCompliantCount = value; } /** *

The total number of compliance items that aren't compliant.

*/ inline NonCompliantSummary& WithNonCompliantCount(int value) { SetNonCompliantCount(value); return *this;} /** *

A summary of the non-compliance severity by compliance type

*/ inline const SeveritySummary& GetSeveritySummary() const{ return m_severitySummary; } /** *

A summary of the non-compliance severity by compliance type

*/ inline bool SeveritySummaryHasBeenSet() const { return m_severitySummaryHasBeenSet; } /** *

A summary of the non-compliance severity by compliance type

*/ inline void SetSeveritySummary(const SeveritySummary& value) { m_severitySummaryHasBeenSet = true; m_severitySummary = value; } /** *

A summary of the non-compliance severity by compliance type

*/ inline void SetSeveritySummary(SeveritySummary&& value) { m_severitySummaryHasBeenSet = true; m_severitySummary = std::move(value); } /** *

A summary of the non-compliance severity by compliance type

*/ inline NonCompliantSummary& WithSeveritySummary(const SeveritySummary& value) { SetSeveritySummary(value); return *this;} /** *

A summary of the non-compliance severity by compliance type

*/ inline NonCompliantSummary& WithSeveritySummary(SeveritySummary&& value) { SetSeveritySummary(std::move(value)); return *this;} private: int m_nonCompliantCount; bool m_nonCompliantCountHasBeenSet = false; SeveritySummary m_severitySummary; bool m_severitySummaryHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws