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

Entity that comprises information of count and percentage.

See * Also:

AWS * API Reference

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

Indicates the count of occurences of the given statistic.

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

Indicates the count of occurences of the given statistic.

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

Indicates the count of occurences of the given statistic.

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

Indicates the count of occurences of the given statistic.

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

Indicates the percentage of occurances of the given statistic.

*/ inline double GetPercentage() const{ return m_percentage; } /** *

Indicates the percentage of occurances of the given statistic.

*/ inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; } /** *

Indicates the percentage of occurances of the given statistic.

*/ inline void SetPercentage(double value) { m_percentageHasBeenSet = true; m_percentage = value; } /** *

Indicates the percentage of occurances of the given statistic.

*/ inline CountPercent& WithPercentage(double value) { SetPercentage(value); return *this;} private: int m_count; bool m_countHasBeenSet = false; double m_percentage; bool m_percentageHasBeenSet = false; }; } // namespace Model } // namespace LookoutEquipment } // namespace Aws