/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConfigService { namespace Model { /** *

The number of Amazon Web Services resources or Config rules responsible for * the current compliance of the item, up to a maximum number.

See * Also:

AWS * API Reference

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

The number of Amazon Web Services resources or Config rules responsible for * the current compliance of the item.

*/ inline int GetCappedCount() const{ return m_cappedCount; } /** *

The number of Amazon Web Services resources or Config rules responsible for * the current compliance of the item.

*/ inline bool CappedCountHasBeenSet() const { return m_cappedCountHasBeenSet; } /** *

The number of Amazon Web Services resources or Config rules responsible for * the current compliance of the item.

*/ inline void SetCappedCount(int value) { m_cappedCountHasBeenSet = true; m_cappedCount = value; } /** *

The number of Amazon Web Services resources or Config rules responsible for * the current compliance of the item.

*/ inline ComplianceContributorCount& WithCappedCount(int value) { SetCappedCount(value); return *this;} /** *

Indicates whether the maximum count is reached.

*/ inline bool GetCapExceeded() const{ return m_capExceeded; } /** *

Indicates whether the maximum count is reached.

*/ inline bool CapExceededHasBeenSet() const { return m_capExceededHasBeenSet; } /** *

Indicates whether the maximum count is reached.

*/ inline void SetCapExceeded(bool value) { m_capExceededHasBeenSet = true; m_capExceeded = value; } /** *

Indicates whether the maximum count is reached.

*/ inline ComplianceContributorCount& WithCapExceeded(bool value) { SetCapExceeded(value); return *this;} private: int m_cappedCount; bool m_cappedCountHasBeenSet = false; bool m_capExceeded; bool m_capExceededHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws