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

a structure that contains information on the count of resources within a * group.

See Also:

AWS * API Reference

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

The number of resources.

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

The number of resources.

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

The number of resources.

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

The number of resources.

*/ inline Counts& WithCount(long long value) { SetCount(value); return *this;} /** *

The key associated with this group

*/ inline const GroupKey& GetGroupKey() const{ return m_groupKey; } /** *

The key associated with this group

*/ inline bool GroupKeyHasBeenSet() const { return m_groupKeyHasBeenSet; } /** *

The key associated with this group

*/ inline void SetGroupKey(const GroupKey& value) { m_groupKeyHasBeenSet = true; m_groupKey = value; } /** *

The key associated with this group

*/ inline void SetGroupKey(GroupKey&& value) { m_groupKeyHasBeenSet = true; m_groupKey = std::move(value); } /** *

The key associated with this group

*/ inline Counts& WithGroupKey(const GroupKey& value) { SetGroupKey(value); return *this;} /** *

The key associated with this group

*/ inline Counts& WithGroupKey(GroupKey&& value) { SetGroupKey(std::move(value)); return *this;} private: long long m_count; bool m_countHasBeenSet = false; GroupKey m_groupKey; bool m_groupKeyHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws