This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

108 lines
3.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
#include <aws/codeguruprofiler/model/FrameMetric.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeGuruProfiler
{
namespace Model
{
/**
* <p> Information about a frame metric and its values. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/FrameMetricDatum">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUPROFILER_API FrameMetricDatum
{
public:
FrameMetricDatum();
FrameMetricDatum(Aws::Utils::Json::JsonView jsonValue);
FrameMetricDatum& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const FrameMetric& GetFrameMetric() const{ return m_frameMetric; }
inline bool FrameMetricHasBeenSet() const { return m_frameMetricHasBeenSet; }
inline void SetFrameMetric(const FrameMetric& value) { m_frameMetricHasBeenSet = true; m_frameMetric = value; }
inline void SetFrameMetric(FrameMetric&& value) { m_frameMetricHasBeenSet = true; m_frameMetric = std::move(value); }
inline FrameMetricDatum& WithFrameMetric(const FrameMetric& value) { SetFrameMetric(value); return *this;}
inline FrameMetricDatum& WithFrameMetric(FrameMetric&& value) { SetFrameMetric(std::move(value)); return *this;}
/**
* <p> A list of values that are associated with a frame metric. </p>
*/
inline const Aws::Vector<double>& GetValues() const{ return m_values; }
/**
* <p> A list of values that are associated with a frame metric. </p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p> A list of values that are associated with a frame metric. </p>
*/
inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p> A list of values that are associated with a frame metric. </p>
*/
inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p> A list of values that are associated with a frame metric. </p>
*/
inline FrameMetricDatum& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
/**
* <p> A list of values that are associated with a frame metric. </p>
*/
inline FrameMetricDatum& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p> A list of values that are associated with a frame metric. </p>
*/
inline FrameMetricDatum& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
private:
FrameMetric m_frameMetric;
bool m_frameMetricHasBeenSet;
Aws::Vector<double> m_values;
bool m_valuesHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruProfiler
} // namespace Aws