AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountersToAggregate(const Aws::Vector<Aws::String>& value) { m_countersToAggregateHasBeenSet = true; m_countersToAggregate = value; }
49 inline void SetCountersToAggregate(Aws::Vector<Aws::String>&& value) { m_countersToAggregateHasBeenSet = true; m_countersToAggregate = std::move(value); }
51 inline Pattern& WithCountersToAggregate(Aws::Vector<Aws::String>&& value) { SetCountersToAggregate(std::move(value)); return *this;}
52 inline Pattern& AddCountersToAggregate(const Aws::String& value) { m_countersToAggregateHasBeenSet = true; m_countersToAggregate.push_back(value); return *this; }
53 inline Pattern& AddCountersToAggregate(Aws::String&& value) { m_countersToAggregateHasBeenSet = true; m_countersToAggregate.push_back(std::move(value)); return *this; }
54 inline Pattern& AddCountersToAggregate(const char* value) { m_countersToAggregateHasBeenSet = true; m_countersToAggregate.push_back(value); return *this; }
56
58
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline Pattern& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline Pattern& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline Pattern& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::String& GetId() const{ return m_id; }
77 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
78 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
79 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
80 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
81 inline Pattern& WithId(const Aws::String& value) { SetId(value); return *this;}
82 inline Pattern& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
83 inline Pattern& WithId(const char* value) { SetId(value); return *this;}
85
87
90 inline const Aws::String& GetName() const{ return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
94 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
95 inline Pattern& WithName(const Aws::String& value) { SetName(value); return *this;}
96 inline Pattern& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
97 inline Pattern& WithName(const char* value) { SetName(value); return *this;}
99
101
105 inline const Aws::String& GetResolutionSteps() const{ return m_resolutionSteps; }
106 inline bool ResolutionStepsHasBeenSet() const { return m_resolutionStepsHasBeenSet; }
107 inline void SetResolutionSteps(const Aws::String& value) { m_resolutionStepsHasBeenSet = true; m_resolutionSteps = value; }
108 inline void SetResolutionSteps(Aws::String&& value) { m_resolutionStepsHasBeenSet = true; m_resolutionSteps = std::move(value); }
109 inline void SetResolutionSteps(const char* value) { m_resolutionStepsHasBeenSet = true; m_resolutionSteps.assign(value); }
110 inline Pattern& WithResolutionSteps(const Aws::String& value) { SetResolutionSteps(value); return *this;}
111 inline Pattern& WithResolutionSteps(Aws::String&& value) { SetResolutionSteps(std::move(value)); return *this;}
112 inline Pattern& WithResolutionSteps(const char* value) { SetResolutionSteps(value); return *this;}
114
116
120 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetTargetFrames() const{ return m_targetFrames; }
121 inline bool TargetFramesHasBeenSet() const { return m_targetFramesHasBeenSet; }
122 inline void SetTargetFrames(const Aws::Vector<Aws::Vector<Aws::String>>& value) { m_targetFramesHasBeenSet = true; m_targetFrames = value; }
123 inline void SetTargetFrames(Aws::Vector<Aws::Vector<Aws::String>>&& value) { m_targetFramesHasBeenSet = true; m_targetFrames = std::move(value); }
124 inline Pattern& WithTargetFrames(const Aws::Vector<Aws::Vector<Aws::String>>& value) { SetTargetFrames(value); return *this;}
125 inline Pattern& WithTargetFrames(Aws::Vector<Aws::Vector<Aws::String>>&& value) { SetTargetFrames(std::move(value)); return *this;}
126 inline Pattern& AddTargetFrames(const Aws::Vector<Aws::String>& value) { m_targetFramesHasBeenSet = true; m_targetFrames.push_back(value); return *this; }
127 inline Pattern& AddTargetFrames(Aws::Vector<Aws::String>&& value) { m_targetFramesHasBeenSet = true; m_targetFrames.push_back(std::move(value)); return *this; }
129
131
136 inline double GetThresholdPercent() const{ return m_thresholdPercent; }
137 inline bool ThresholdPercentHasBeenSet() const { return m_thresholdPercentHasBeenSet; }
138 inline void SetThresholdPercent(double value) { m_thresholdPercentHasBeenSet = true; m_thresholdPercent = value; }
139 inline Pattern& WithThresholdPercent(double value) { SetThresholdPercent(value); return *this;}
141 private:
142
143 Aws::Vector<Aws::String> m_countersToAggregate;
144 bool m_countersToAggregateHasBeenSet = false;
145
146 Aws::String m_description;
147 bool m_descriptionHasBeenSet = false;
148
149 Aws::String m_id;
150 bool m_idHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_resolutionSteps;
156 bool m_resolutionStepsHasBeenSet = false;
157
159 bool m_targetFramesHasBeenSet = false;
160
161 double m_thresholdPercent;
162 bool m_thresholdPercentHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace CodeGuruProfiler
167} // namespace Aws
Pattern & WithResolutionSteps(const Aws::String &value)
Definition Pattern.h:110
Pattern & WithName(const char *value)
Definition Pattern.h:97
void SetDescription(const Aws::String &value)
Definition Pattern.h:64
void SetName(const Aws::String &value)
Definition Pattern.h:92
Pattern & WithResolutionSteps(const char *value)
Definition Pattern.h:112
Pattern & WithName(const Aws::String &value)
Definition Pattern.h:95
Pattern & WithId(Aws::String &&value)
Definition Pattern.h:82
void SetName(Aws::String &&value)
Definition Pattern.h:93
AWS_CODEGURUPROFILER_API Pattern(Aws::Utils::Json::JsonView jsonValue)
Pattern & WithResolutionSteps(Aws::String &&value)
Definition Pattern.h:111
void SetId(const char *value)
Definition Pattern.h:80
Pattern & WithThresholdPercent(double value)
Definition Pattern.h:139
const Aws::String & GetResolutionSteps() const
Definition Pattern.h:105
Pattern & AddTargetFrames(const Aws::Vector< Aws::String > &value)
Definition Pattern.h:126
Pattern & WithCountersToAggregate(const Aws::Vector< Aws::String > &value)
Definition Pattern.h:50
void SetTargetFrames(const Aws::Vector< Aws::Vector< Aws::String > > &value)
Definition Pattern.h:122
const Aws::String & GetName() const
Definition Pattern.h:90
void SetId(Aws::String &&value)
Definition Pattern.h:79
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
Pattern & WithName(Aws::String &&value)
Definition Pattern.h:96
void SetResolutionSteps(Aws::String &&value)
Definition Pattern.h:108
Pattern & AddCountersToAggregate(const char *value)
Definition Pattern.h:54
void SetId(const Aws::String &value)
Definition Pattern.h:78
void SetName(const char *value)
Definition Pattern.h:94
Pattern & WithDescription(Aws::String &&value)
Definition Pattern.h:68
Pattern & AddTargetFrames(Aws::Vector< Aws::String > &&value)
Definition Pattern.h:127
void SetDescription(Aws::String &&value)
Definition Pattern.h:65
const Aws::Vector< Aws::Vector< Aws::String > > & GetTargetFrames() const
Definition Pattern.h:120
void SetResolutionSteps(const Aws::String &value)
Definition Pattern.h:107
Pattern & WithDescription(const char *value)
Definition Pattern.h:69
const Aws::String & GetId() const
Definition Pattern.h:76
void SetTargetFrames(Aws::Vector< Aws::Vector< Aws::String > > &&value)
Definition Pattern.h:123
void SetCountersToAggregate(Aws::Vector< Aws::String > &&value)
Definition Pattern.h:49
Pattern & AddCountersToAggregate(const Aws::String &value)
Definition Pattern.h:52
Pattern & WithTargetFrames(Aws::Vector< Aws::Vector< Aws::String > > &&value)
Definition Pattern.h:125
Pattern & AddCountersToAggregate(Aws::String &&value)
Definition Pattern.h:53
Pattern & WithCountersToAggregate(Aws::Vector< Aws::String > &&value)
Definition Pattern.h:51
Pattern & WithDescription(const Aws::String &value)
Definition Pattern.h:67
void SetThresholdPercent(double value)
Definition Pattern.h:138
Pattern & WithId(const Aws::String &value)
Definition Pattern.h:81
Pattern & WithTargetFrames(const Aws::Vector< Aws::Vector< Aws::String > > &value)
Definition Pattern.h:124
void SetDescription(const char *value)
Definition Pattern.h:66
AWS_CODEGURUPROFILER_API Pattern()
const Aws::Vector< Aws::String > & GetCountersToAggregate() const
Definition Pattern.h:46
void SetResolutionSteps(const char *value)
Definition Pattern.h:109
const Aws::String & GetDescription() const
Definition Pattern.h:62
void SetCountersToAggregate(const Aws::Vector< Aws::String > &value)
Definition Pattern.h:48
Pattern & WithId(const char *value)
Definition Pattern.h:83
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