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

The frame name, metric type, and thread states. These are used to derive the * value of the metric for the frame.

See Also:

AWS * API Reference

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

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline const Aws::String& GetFrameName() const{ return m_frameName; } /** *

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline bool FrameNameHasBeenSet() const { return m_frameNameHasBeenSet; } /** *

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline void SetFrameName(const Aws::String& value) { m_frameNameHasBeenSet = true; m_frameName = value; } /** *

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline void SetFrameName(Aws::String&& value) { m_frameNameHasBeenSet = true; m_frameName = std::move(value); } /** *

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline void SetFrameName(const char* value) { m_frameNameHasBeenSet = true; m_frameName.assign(value); } /** *

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline FrameMetric& WithFrameName(const Aws::String& value) { SetFrameName(value); return *this;} /** *

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline FrameMetric& WithFrameName(Aws::String&& value) { SetFrameName(std::move(value)); return *this;} /** *

Name of the method common across the multiple occurrences of a frame in an * application profile.

*/ inline FrameMetric& WithFrameName(const char* value) { SetFrameName(value); return *this;} /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline const Aws::Vector& GetThreadStates() const{ return m_threadStates; } /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline bool ThreadStatesHasBeenSet() const { return m_threadStatesHasBeenSet; } /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline void SetThreadStates(const Aws::Vector& value) { m_threadStatesHasBeenSet = true; m_threadStates = value; } /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline void SetThreadStates(Aws::Vector&& value) { m_threadStatesHasBeenSet = true; m_threadStates = std::move(value); } /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline FrameMetric& WithThreadStates(const Aws::Vector& value) { SetThreadStates(value); return *this;} /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline FrameMetric& WithThreadStates(Aws::Vector&& value) { SetThreadStates(std::move(value)); return *this;} /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline FrameMetric& AddThreadStates(const Aws::String& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; } /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline FrameMetric& AddThreadStates(Aws::String&& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(std::move(value)); return *this; } /** *

List of application runtime thread states used to get the counts for a frame * a derive a metric value.

*/ inline FrameMetric& AddThreadStates(const char* value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; } /** *

A type of aggregation that specifies how a metric for a frame is analyzed. * The supported value AggregatedRelativeTotalTime is an aggregation * of the metric value for one frame that is calculated across the occurrences of * all frames in a profile.

*/ inline const MetricType& GetType() const{ return m_type; } /** *

A type of aggregation that specifies how a metric for a frame is analyzed. * The supported value AggregatedRelativeTotalTime is an aggregation * of the metric value for one frame that is calculated across the occurrences of * all frames in a profile.

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

A type of aggregation that specifies how a metric for a frame is analyzed. * The supported value AggregatedRelativeTotalTime is an aggregation * of the metric value for one frame that is calculated across the occurrences of * all frames in a profile.

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

A type of aggregation that specifies how a metric for a frame is analyzed. * The supported value AggregatedRelativeTotalTime is an aggregation * of the metric value for one frame that is calculated across the occurrences of * all frames in a profile.

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

A type of aggregation that specifies how a metric for a frame is analyzed. * The supported value AggregatedRelativeTotalTime is an aggregation * of the metric value for one frame that is calculated across the occurrences of * all frames in a profile.

*/ inline FrameMetric& WithType(const MetricType& value) { SetType(value); return *this;} /** *

A type of aggregation that specifies how a metric for a frame is analyzed. * The supported value AggregatedRelativeTotalTime is an aggregation * of the metric value for one frame that is calculated across the occurrences of * all frames in a profile.

*/ inline FrameMetric& WithType(MetricType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_frameName; bool m_frameNameHasBeenSet = false; Aws::Vector m_threadStates; bool m_threadStatesHasBeenSet = false; MetricType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws