/** * 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 are compliant. The summary is organized according * to the resource count for each compliance type.

See Also:

AWS * API Reference

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

The total number of resources that are compliant.

*/ inline int GetCompliantCount() const{ return m_compliantCount; } /** *

The total number of resources that are compliant.

*/ inline bool CompliantCountHasBeenSet() const { return m_compliantCountHasBeenSet; } /** *

The total number of resources that are compliant.

*/ inline void SetCompliantCount(int value) { m_compliantCountHasBeenSet = true; m_compliantCount = value; } /** *

The total number of resources that are compliant.

*/ inline CompliantSummary& WithCompliantCount(int value) { SetCompliantCount(value); return *this;} /** *

A summary of the compliance severity by compliance type.

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

A summary of the compliance severity by compliance type.

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

A summary of the compliance severity by compliance type.

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

A summary of the compliance severity by compliance type.

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

A summary of the compliance severity by compliance type.

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

A summary of the compliance severity by compliance type.

*/ inline CompliantSummary& WithSeveritySummary(SeveritySummary&& value) { SetSeveritySummary(std::move(value)); return *this;} private: int m_compliantCount; bool m_compliantCountHasBeenSet; SeveritySummary m_severitySummary; bool m_severitySummaryHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws