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

A statistic in a Performance Insights collection.

See Also:

* AWS * API Reference

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

The statistic type.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The statistic type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The statistic type.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The statistic type.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The statistic type.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The statistic type.

*/ inline PerformanceInsightsStat& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The statistic type.

*/ inline PerformanceInsightsStat& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The statistic type.

*/ inline PerformanceInsightsStat& WithType(const char* value) { SetType(value); return *this;} /** *

The value of the statistic.

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

The value of the statistic.

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

The value of the statistic.

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

The value of the statistic.

*/ inline PerformanceInsightsStat& WithValue(double value) { SetValue(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws