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

The part of a profile that contains a recommendation found during * analysis.

See Also:

AWS * API Reference

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

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline const Aws::String& GetFrameAddress() const{ return m_frameAddress; } /** *

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline bool FrameAddressHasBeenSet() const { return m_frameAddressHasBeenSet; } /** *

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline void SetFrameAddress(const Aws::String& value) { m_frameAddressHasBeenSet = true; m_frameAddress = value; } /** *

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline void SetFrameAddress(Aws::String&& value) { m_frameAddressHasBeenSet = true; m_frameAddress = std::move(value); } /** *

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline void SetFrameAddress(const char* value) { m_frameAddressHasBeenSet = true; m_frameAddress.assign(value); } /** *

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline Match& WithFrameAddress(const Aws::String& value) { SetFrameAddress(value); return *this;} /** *

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline Match& WithFrameAddress(Aws::String&& value) { SetFrameAddress(std::move(value)); return *this;} /** *

The location in the profiling graph that contains a recommendation found * during analysis.

*/ inline Match& WithFrameAddress(const char* value) { SetFrameAddress(value); return *this;} /** *

The target frame that triggered a match.

*/ inline int GetTargetFramesIndex() const{ return m_targetFramesIndex; } /** *

The target frame that triggered a match.

*/ inline bool TargetFramesIndexHasBeenSet() const { return m_targetFramesIndexHasBeenSet; } /** *

The target frame that triggered a match.

*/ inline void SetTargetFramesIndex(int value) { m_targetFramesIndexHasBeenSet = true; m_targetFramesIndex = value; } /** *

The target frame that triggered a match.

*/ inline Match& WithTargetFramesIndex(int value) { SetTargetFramesIndex(value); return *this;} /** *

The value in the profile data that exceeded the recommendation threshold.

*/ inline double GetThresholdBreachValue() const{ return m_thresholdBreachValue; } /** *

The value in the profile data that exceeded the recommendation threshold.

*/ inline bool ThresholdBreachValueHasBeenSet() const { return m_thresholdBreachValueHasBeenSet; } /** *

The value in the profile data that exceeded the recommendation threshold.

*/ inline void SetThresholdBreachValue(double value) { m_thresholdBreachValueHasBeenSet = true; m_thresholdBreachValue = value; } /** *

The value in the profile data that exceeded the recommendation threshold.

*/ inline Match& WithThresholdBreachValue(double value) { SetThresholdBreachValue(value); return *this;} private: Aws::String m_frameAddress; bool m_frameAddressHasBeenSet = false; int m_targetFramesIndex; bool m_targetFramesIndexHasBeenSet = false; double m_thresholdBreachValue; bool m_thresholdBreachValueHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws