AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Pattern.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeGuruProfiler {
21namespace Model {
22
29class Pattern {
30 public:
31 AWS_CODEGURUPROFILER_API Pattern() = default;
32 AWS_CODEGURUPROFILER_API Pattern(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEGURUPROFILER_API Pattern& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetCountersToAggregate() const { return m_countersToAggregate; }
41 inline bool CountersToAggregateHasBeenSet() const { return m_countersToAggregateHasBeenSet; }
42 template <typename CountersToAggregateT = Aws::Vector<Aws::String>>
43 void SetCountersToAggregate(CountersToAggregateT&& value) {
44 m_countersToAggregateHasBeenSet = true;
45 m_countersToAggregate = std::forward<CountersToAggregateT>(value);
46 }
47 template <typename CountersToAggregateT = Aws::Vector<Aws::String>>
48 Pattern& WithCountersToAggregate(CountersToAggregateT&& value) {
49 SetCountersToAggregate(std::forward<CountersToAggregateT>(value));
50 return *this;
51 }
52 template <typename CountersToAggregateT = Aws::String>
53 Pattern& AddCountersToAggregate(CountersToAggregateT&& value) {
54 m_countersToAggregateHasBeenSet = true;
55 m_countersToAggregate.emplace_back(std::forward<CountersToAggregateT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 Pattern& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetId() const { return m_id; }
84 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
85 template <typename IdT = Aws::String>
86 void SetId(IdT&& value) {
87 m_idHasBeenSet = true;
88 m_id = std::forward<IdT>(value);
89 }
90 template <typename IdT = Aws::String>
91 Pattern& WithId(IdT&& value) {
92 SetId(std::forward<IdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetName() const { return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 template <typename NameT = Aws::String>
104 void SetName(NameT&& value) {
105 m_nameHasBeenSet = true;
106 m_name = std::forward<NameT>(value);
107 }
108 template <typename NameT = Aws::String>
109 Pattern& WithName(NameT&& value) {
110 SetName(std::forward<NameT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetResolutionSteps() const { return m_resolutionSteps; }
121 inline bool ResolutionStepsHasBeenSet() const { return m_resolutionStepsHasBeenSet; }
122 template <typename ResolutionStepsT = Aws::String>
123 void SetResolutionSteps(ResolutionStepsT&& value) {
124 m_resolutionStepsHasBeenSet = true;
125 m_resolutionSteps = std::forward<ResolutionStepsT>(value);
126 }
127 template <typename ResolutionStepsT = Aws::String>
128 Pattern& WithResolutionSteps(ResolutionStepsT&& value) {
129 SetResolutionSteps(std::forward<ResolutionStepsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetTargetFrames() const { return m_targetFrames; }
140 inline bool TargetFramesHasBeenSet() const { return m_targetFramesHasBeenSet; }
141 template <typename TargetFramesT = Aws::Vector<Aws::Vector<Aws::String>>>
142 void SetTargetFrames(TargetFramesT&& value) {
143 m_targetFramesHasBeenSet = true;
144 m_targetFrames = std::forward<TargetFramesT>(value);
145 }
146 template <typename TargetFramesT = Aws::Vector<Aws::Vector<Aws::String>>>
147 Pattern& WithTargetFrames(TargetFramesT&& value) {
148 SetTargetFrames(std::forward<TargetFramesT>(value));
149 return *this;
150 }
151 template <typename TargetFramesT = Aws::Vector<Aws::String>>
152 Pattern& AddTargetFrames(TargetFramesT&& value) {
153 m_targetFramesHasBeenSet = true;
154 m_targetFrames.emplace_back(std::forward<TargetFramesT>(value));
155 return *this;
156 }
158
160
165 inline double GetThresholdPercent() const { return m_thresholdPercent; }
166 inline bool ThresholdPercentHasBeenSet() const { return m_thresholdPercentHasBeenSet; }
167 inline void SetThresholdPercent(double value) {
168 m_thresholdPercentHasBeenSet = true;
169 m_thresholdPercent = value;
170 }
171 inline Pattern& WithThresholdPercent(double value) {
172 SetThresholdPercent(value);
173 return *this;
174 }
176 private:
177 Aws::Vector<Aws::String> m_countersToAggregate;
178
179 Aws::String m_description;
180
181 Aws::String m_id;
182
183 Aws::String m_name;
184
185 Aws::String m_resolutionSteps;
186
188
189 double m_thresholdPercent{0.0};
190 bool m_countersToAggregateHasBeenSet = false;
191 bool m_descriptionHasBeenSet = false;
192 bool m_idHasBeenSet = false;
193 bool m_nameHasBeenSet = false;
194 bool m_resolutionStepsHasBeenSet = false;
195 bool m_targetFramesHasBeenSet = false;
196 bool m_thresholdPercentHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace CodeGuruProfiler
201} // namespace Aws
Pattern & WithCountersToAggregate(CountersToAggregateT &&value)
Definition Pattern.h:48
Pattern & WithName(NameT &&value)
Definition Pattern.h:109
Pattern & WithId(IdT &&value)
Definition Pattern.h:91
AWS_CODEGURUPROFILER_API Pattern(Aws::Utils::Json::JsonView jsonValue)
void SetCountersToAggregate(CountersToAggregateT &&value)
Definition Pattern.h:43
Pattern & WithThresholdPercent(double value)
Definition Pattern.h:171
const Aws::String & GetResolutionSteps() const
Definition Pattern.h:120
const Aws::String & GetName() const
Definition Pattern.h:101
void SetDescription(DescriptionT &&value)
Definition Pattern.h:68
Pattern & WithDescription(DescriptionT &&value)
Definition Pattern.h:73
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::Vector< Aws::String > > & GetTargetFrames() const
Definition Pattern.h:139
Pattern & WithResolutionSteps(ResolutionStepsT &&value)
Definition Pattern.h:128
const Aws::String & GetId() const
Definition Pattern.h:83
Pattern & AddCountersToAggregate(CountersToAggregateT &&value)
Definition Pattern.h:53
Pattern & AddTargetFrames(TargetFramesT &&value)
Definition Pattern.h:152
AWS_CODEGURUPROFILER_API Pattern()=default
void SetThresholdPercent(double value)
Definition Pattern.h:167
void SetResolutionSteps(ResolutionStepsT &&value)
Definition Pattern.h:123
Pattern & WithTargetFrames(TargetFramesT &&value)
Definition Pattern.h:147
void SetTargetFrames(TargetFramesT &&value)
Definition Pattern.h:142
const Aws::Vector< Aws::String > & GetCountersToAggregate() const
Definition Pattern.h:40
const Aws::String & GetDescription() const
Definition Pattern.h:65
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