7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/MetricType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
21namespace CodeGuruProfiler {
34 AWS_CODEGURUPROFILER_API
Metric() =
default;
46 template <
typename FrameNameT = Aws::String>
48 m_frameNameHasBeenSet =
true;
49 m_frameName = std::forward<FrameNameT>(value);
51 template <
typename FrameNameT = Aws::String>
65 template <
typename ThreadStatesT = Aws::Vector<Aws::String>>
67 m_threadStatesHasBeenSet =
true;
68 m_threadStates = std::forward<ThreadStatesT>(value);
70 template <
typename ThreadStatesT = Aws::Vector<Aws::String>>
75 template <
typename ThreadStatesT = Aws::String>
77 m_threadStatesHasBeenSet =
true;
78 m_threadStates.emplace_back(std::forward<ThreadStatesT>(value));
93 m_typeHasBeenSet =
true;
107 bool m_frameNameHasBeenSet =
false;
108 bool m_threadStatesHasBeenSet =
false;
109 bool m_typeHasBeenSet =
false;
AWS_CODEGURUPROFILER_API Metric(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetThreadStates() const
bool ThreadStatesHasBeenSet() const
Metric & AddThreadStates(ThreadStatesT &&value)
AWS_CODEGURUPROFILER_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(MetricType value)
Metric & WithType(MetricType value)
bool FrameNameHasBeenSet() const
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
Metric & WithThreadStates(ThreadStatesT &&value)
AWS_CODEGURUPROFILER_API Metric()=default
const Aws::String & GetFrameName() const
MetricType GetType() const
Metric & WithFrameName(FrameNameT &&value)
bool TypeHasBeenSet() const
void SetFrameName(FrameNameT &&value)
void SetThreadStates(ThreadStatesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue