AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Pattern.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruProfiler
23{
24namespace Model
25{
26
33 class Pattern
34 {
35 public:
36 AWS_CODEGURUPROFILER_API Pattern() = default;
37 AWS_CODEGURUPROFILER_API Pattern(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUPROFILER_API Pattern& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetCountersToAggregate() const { return m_countersToAggregate; }
47 inline bool CountersToAggregateHasBeenSet() const { return m_countersToAggregateHasBeenSet; }
48 template<typename CountersToAggregateT = Aws::Vector<Aws::String>>
49 void SetCountersToAggregate(CountersToAggregateT&& value) { m_countersToAggregateHasBeenSet = true; m_countersToAggregate = std::forward<CountersToAggregateT>(value); }
50 template<typename CountersToAggregateT = Aws::Vector<Aws::String>>
51 Pattern& WithCountersToAggregate(CountersToAggregateT&& value) { SetCountersToAggregate(std::forward<CountersToAggregateT>(value)); return *this;}
52 template<typename CountersToAggregateT = Aws::String>
53 Pattern& AddCountersToAggregate(CountersToAggregateT&& value) { m_countersToAggregateHasBeenSet = true; m_countersToAggregate.emplace_back(std::forward<CountersToAggregateT>(value)); return *this; }
55
57
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 Pattern& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetId() const { return m_id; }
74 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
75 template<typename IdT = Aws::String>
76 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
77 template<typename IdT = Aws::String>
78 Pattern& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 Pattern& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
98 inline const Aws::String& GetResolutionSteps() const { return m_resolutionSteps; }
99 inline bool ResolutionStepsHasBeenSet() const { return m_resolutionStepsHasBeenSet; }
100 template<typename ResolutionStepsT = Aws::String>
101 void SetResolutionSteps(ResolutionStepsT&& value) { m_resolutionStepsHasBeenSet = true; m_resolutionSteps = std::forward<ResolutionStepsT>(value); }
102 template<typename ResolutionStepsT = Aws::String>
103 Pattern& WithResolutionSteps(ResolutionStepsT&& value) { SetResolutionSteps(std::forward<ResolutionStepsT>(value)); return *this;}
105
107
111 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetTargetFrames() const { return m_targetFrames; }
112 inline bool TargetFramesHasBeenSet() const { return m_targetFramesHasBeenSet; }
113 template<typename TargetFramesT = Aws::Vector<Aws::Vector<Aws::String>>>
114 void SetTargetFrames(TargetFramesT&& value) { m_targetFramesHasBeenSet = true; m_targetFrames = std::forward<TargetFramesT>(value); }
115 template<typename TargetFramesT = Aws::Vector<Aws::Vector<Aws::String>>>
116 Pattern& WithTargetFrames(TargetFramesT&& value) { SetTargetFrames(std::forward<TargetFramesT>(value)); return *this;}
117 template<typename TargetFramesT = Aws::Vector<Aws::String>>
118 Pattern& AddTargetFrames(TargetFramesT&& value) { m_targetFramesHasBeenSet = true; m_targetFrames.emplace_back(std::forward<TargetFramesT>(value)); return *this; }
120
122
127 inline double GetThresholdPercent() const { return m_thresholdPercent; }
128 inline bool ThresholdPercentHasBeenSet() const { return m_thresholdPercentHasBeenSet; }
129 inline void SetThresholdPercent(double value) { m_thresholdPercentHasBeenSet = true; m_thresholdPercent = value; }
130 inline Pattern& WithThresholdPercent(double value) { SetThresholdPercent(value); return *this;}
132 private:
133
134 Aws::Vector<Aws::String> m_countersToAggregate;
135 bool m_countersToAggregateHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 Aws::String m_resolutionSteps;
147 bool m_resolutionStepsHasBeenSet = false;
148
150 bool m_targetFramesHasBeenSet = false;
151
152 double m_thresholdPercent{0.0};
153 bool m_thresholdPercentHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace CodeGuruProfiler
158} // namespace Aws
Pattern & WithCountersToAggregate(CountersToAggregateT &&value)
Definition Pattern.h:51
Pattern & WithName(NameT &&value)
Definition Pattern.h:90
Pattern & WithId(IdT &&value)
Definition Pattern.h:78
AWS_CODEGURUPROFILER_API Pattern(Aws::Utils::Json::JsonView jsonValue)
void SetCountersToAggregate(CountersToAggregateT &&value)
Definition Pattern.h:49
Pattern & WithThresholdPercent(double value)
Definition Pattern.h:130
const Aws::String & GetResolutionSteps() const
Definition Pattern.h:98
const Aws::String & GetName() const
Definition Pattern.h:85
void SetDescription(DescriptionT &&value)
Definition Pattern.h:64
Pattern & WithDescription(DescriptionT &&value)
Definition Pattern.h:66
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::Vector< Aws::String > > & GetTargetFrames() const
Definition Pattern.h:111
Pattern & WithResolutionSteps(ResolutionStepsT &&value)
Definition Pattern.h:103
const Aws::String & GetId() const
Definition Pattern.h:73
Pattern & AddCountersToAggregate(CountersToAggregateT &&value)
Definition Pattern.h:53
Pattern & AddTargetFrames(TargetFramesT &&value)
Definition Pattern.h:118
AWS_CODEGURUPROFILER_API Pattern()=default
void SetThresholdPercent(double value)
Definition Pattern.h:129
void SetResolutionSteps(ResolutionStepsT &&value)
Definition Pattern.h:101
Pattern & WithTargetFrames(TargetFramesT &&value)
Definition Pattern.h:116
void SetTargetFrames(TargetFramesT &&value)
Definition Pattern.h:114
const Aws::Vector< Aws::String > & GetCountersToAggregate() const
Definition Pattern.h:46
const Aws::String & GetDescription() const
Definition Pattern.h:61
AWS_CODEGURUPROFILER_API Pattern & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue