AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Match.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeGuruProfiler {
20namespace Model {
21
28class Match {
29 public:
30 AWS_CODEGURUPROFILER_API Match() = default;
31 AWS_CODEGURUPROFILER_API Match(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEGURUPROFILER_API Match& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetFrameAddress() const { return m_frameAddress; }
41 inline bool FrameAddressHasBeenSet() const { return m_frameAddressHasBeenSet; }
42 template <typename FrameAddressT = Aws::String>
43 void SetFrameAddress(FrameAddressT&& value) {
44 m_frameAddressHasBeenSet = true;
45 m_frameAddress = std::forward<FrameAddressT>(value);
46 }
47 template <typename FrameAddressT = Aws::String>
48 Match& WithFrameAddress(FrameAddressT&& value) {
49 SetFrameAddress(std::forward<FrameAddressT>(value));
50 return *this;
51 }
53
55
58 inline int GetTargetFramesIndex() const { return m_targetFramesIndex; }
59 inline bool TargetFramesIndexHasBeenSet() const { return m_targetFramesIndexHasBeenSet; }
60 inline void SetTargetFramesIndex(int value) {
61 m_targetFramesIndexHasBeenSet = true;
62 m_targetFramesIndex = value;
63 }
64 inline Match& WithTargetFramesIndex(int value) {
66 return *this;
67 }
69
71
74 inline double GetThresholdBreachValue() const { return m_thresholdBreachValue; }
75 inline bool ThresholdBreachValueHasBeenSet() const { return m_thresholdBreachValueHasBeenSet; }
76 inline void SetThresholdBreachValue(double value) {
77 m_thresholdBreachValueHasBeenSet = true;
78 m_thresholdBreachValue = value;
79 }
80 inline Match& WithThresholdBreachValue(double value) {
82 return *this;
83 }
85 private:
86 Aws::String m_frameAddress;
87
88 int m_targetFramesIndex{0};
89
90 double m_thresholdBreachValue{0.0};
91 bool m_frameAddressHasBeenSet = false;
92 bool m_targetFramesIndexHasBeenSet = false;
93 bool m_thresholdBreachValueHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CodeGuruProfiler
98} // namespace Aws
bool TargetFramesIndexHasBeenSet() const
Definition Match.h:59
Match & WithFrameAddress(FrameAddressT &&value)
Definition Match.h:48
Match & WithTargetFramesIndex(int value)
Definition Match.h:64
bool ThresholdBreachValueHasBeenSet() const
Definition Match.h:75
Match & WithThresholdBreachValue(double value)
Definition Match.h:80
AWS_CODEGURUPROFILER_API Match(Aws::Utils::Json::JsonView jsonValue)
void SetFrameAddress(FrameAddressT &&value)
Definition Match.h:43
const Aws::String & GetFrameAddress() const
Definition Match.h:40
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
double GetThresholdBreachValue() const
Definition Match.h:74
bool FrameAddressHasBeenSet() const
Definition Match.h:41
AWS_CODEGURUPROFILER_API Match & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThresholdBreachValue(double value)
Definition Match.h:76
void SetTargetFramesIndex(int value)
Definition Match.h:60
AWS_CODEGURUPROFILER_API Match()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue