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

Describes the percentile and percentile value.

See Also:

AWS API * Reference

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

The percentile.

*/ inline double GetPercent() const{ return m_percent; } /** *

The percentile.

*/ inline bool PercentHasBeenSet() const { return m_percentHasBeenSet; } /** *

The percentile.

*/ inline void SetPercent(double value) { m_percentHasBeenSet = true; m_percent = value; } /** *

The percentile.

*/ inline PercentPair& WithPercent(double value) { SetPercent(value); return *this;} /** *

The value of the percentile.

*/ inline double GetValue() const{ return m_value; } /** *

The value of the percentile.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the percentile.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the percentile.

*/ inline PercentPair& WithValue(double value) { SetValue(value); return *this;} private: double m_percent; bool m_percentHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws