AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FrameMetric.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codeguruprofiler/model/MetricType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruProfiler
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEGURUPROFILER_API FrameMetric();
38 AWS_CODEGURUPROFILER_API FrameMetric(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUPROFILER_API FrameMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetFrameName() const{ return m_frameName; }
49 inline bool FrameNameHasBeenSet() const { return m_frameNameHasBeenSet; }
50 inline void SetFrameName(const Aws::String& value) { m_frameNameHasBeenSet = true; m_frameName = value; }
51 inline void SetFrameName(Aws::String&& value) { m_frameNameHasBeenSet = true; m_frameName = std::move(value); }
52 inline void SetFrameName(const char* value) { m_frameNameHasBeenSet = true; m_frameName.assign(value); }
53 inline FrameMetric& WithFrameName(const Aws::String& value) { SetFrameName(value); return *this;}
54 inline FrameMetric& WithFrameName(Aws::String&& value) { SetFrameName(std::move(value)); return *this;}
55 inline FrameMetric& WithFrameName(const char* value) { SetFrameName(value); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetThreadStates() const{ return m_threadStates; }
64 inline bool ThreadStatesHasBeenSet() const { return m_threadStatesHasBeenSet; }
65 inline void SetThreadStates(const Aws::Vector<Aws::String>& value) { m_threadStatesHasBeenSet = true; m_threadStates = value; }
66 inline void SetThreadStates(Aws::Vector<Aws::String>&& value) { m_threadStatesHasBeenSet = true; m_threadStates = std::move(value); }
67 inline FrameMetric& WithThreadStates(const Aws::Vector<Aws::String>& value) { SetThreadStates(value); return *this;}
68 inline FrameMetric& WithThreadStates(Aws::Vector<Aws::String>&& value) { SetThreadStates(std::move(value)); return *this;}
69 inline FrameMetric& AddThreadStates(const Aws::String& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; }
70 inline FrameMetric& AddThreadStates(Aws::String&& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(std::move(value)); return *this; }
71 inline FrameMetric& AddThreadStates(const char* value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; }
73
75
81 inline const MetricType& GetType() const{ return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(const MetricType& value) { m_typeHasBeenSet = true; m_type = value; }
84 inline void SetType(MetricType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
85 inline FrameMetric& WithType(const MetricType& value) { SetType(value); return *this;}
86 inline FrameMetric& WithType(MetricType&& value) { SetType(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_frameName;
91 bool m_frameNameHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_threadStates;
94 bool m_threadStatesHasBeenSet = false;
95
96 MetricType m_type;
97 bool m_typeHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CodeGuruProfiler
102} // namespace Aws
void SetThreadStates(Aws::Vector< Aws::String > &&value)
Definition FrameMetric.h:66
FrameMetric & AddThreadStates(const char *value)
Definition FrameMetric.h:71
const Aws::String & GetFrameName() const
Definition FrameMetric.h:48
AWS_CODEGURUPROFILER_API FrameMetric(Aws::Utils::Json::JsonView jsonValue)
FrameMetric & WithThreadStates(const Aws::Vector< Aws::String > &value)
Definition FrameMetric.h:67
void SetThreadStates(const Aws::Vector< Aws::String > &value)
Definition FrameMetric.h:65
AWS_CODEGURUPROFILER_API FrameMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFrameName(const Aws::String &value)
Definition FrameMetric.h:50
FrameMetric & WithFrameName(const Aws::String &value)
Definition FrameMetric.h:53
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const MetricType &value)
Definition FrameMetric.h:83
FrameMetric & WithFrameName(const char *value)
Definition FrameMetric.h:55
FrameMetric & WithThreadStates(Aws::Vector< Aws::String > &&value)
Definition FrameMetric.h:68
const Aws::Vector< Aws::String > & GetThreadStates() const
Definition FrameMetric.h:63
FrameMetric & AddThreadStates(const Aws::String &value)
Definition FrameMetric.h:69
FrameMetric & AddThreadStates(Aws::String &&value)
Definition FrameMetric.h:70
AWS_CODEGURUPROFILER_API FrameMetric()
FrameMetric & WithType(const MetricType &value)
Definition FrameMetric.h:85
FrameMetric & WithType(MetricType &&value)
Definition FrameMetric.h:86
const MetricType & GetType() const
Definition FrameMetric.h:81
FrameMetric & WithFrameName(Aws::String &&value)
Definition FrameMetric.h:54
void SetFrameName(Aws::String &&value)
Definition FrameMetric.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue