AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
InstrumentationConfiguration.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/CaptureConfiguration.h>
9#include <aws/application-signals/model/DynamicInstrumentationSignalType.h>
10#include <aws/application-signals/model/InstrumentationType.h>
11#include <aws/application-signals/model/Location.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ApplicationSignals {
27namespace Model {
28
38 public:
39 AWS_APPLICATIONSIGNALS_API InstrumentationConfiguration() = default;
40 AWS_APPLICATIONSIGNALS_API InstrumentationConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline InstrumentationType GetInstrumentationType() const { return m_instrumentationType; }
49 inline bool InstrumentationTypeHasBeenSet() const { return m_instrumentationTypeHasBeenSet; }
51 m_instrumentationTypeHasBeenSet = true;
52 m_instrumentationType = value;
53 }
56 return *this;
57 }
59
61
64 inline const Aws::String& GetService() const { return m_service; }
65 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
66 template <typename ServiceT = Aws::String>
67 void SetService(ServiceT&& value) {
68 m_serviceHasBeenSet = true;
69 m_service = std::forward<ServiceT>(value);
70 }
71 template <typename ServiceT = Aws::String>
73 SetService(std::forward<ServiceT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetEnvironment() const { return m_environment; }
83 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
84 template <typename EnvironmentT = Aws::String>
85 void SetEnvironment(EnvironmentT&& value) {
86 m_environmentHasBeenSet = true;
87 m_environment = std::forward<EnvironmentT>(value);
88 }
89 template <typename EnvironmentT = Aws::String>
91 SetEnvironment(std::forward<EnvironmentT>(value));
92 return *this;
93 }
95
97
100 inline DynamicInstrumentationSignalType GetSignalType() const { return m_signalType; }
101 inline bool SignalTypeHasBeenSet() const { return m_signalTypeHasBeenSet; }
103 m_signalTypeHasBeenSet = true;
104 m_signalType = value;
105 }
107 SetSignalType(value);
108 return *this;
109 }
111
113
116 inline const Location& GetLocation() const { return m_location; }
117 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
118 template <typename LocationT = Location>
119 void SetLocation(LocationT&& value) {
120 m_locationHasBeenSet = true;
121 m_location = std::forward<LocationT>(value);
122 }
123 template <typename LocationT = Location>
125 SetLocation(std::forward<LocationT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetLocationHash() const { return m_locationHash; }
136 inline bool LocationHashHasBeenSet() const { return m_locationHashHasBeenSet; }
137 template <typename LocationHashT = Aws::String>
138 void SetLocationHash(LocationHashT&& value) {
139 m_locationHashHasBeenSet = true;
140 m_locationHash = std::forward<LocationHashT>(value);
141 }
142 template <typename LocationHashT = Aws::String>
144 SetLocationHash(std::forward<LocationHashT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetDescription() const { return m_description; }
154 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
155 template <typename DescriptionT = Aws::String>
156 void SetDescription(DescriptionT&& value) {
157 m_descriptionHasBeenSet = true;
158 m_description = std::forward<DescriptionT>(value);
159 }
160 template <typename DescriptionT = Aws::String>
162 SetDescription(std::forward<DescriptionT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
172 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
173 template <typename ExpiresAtT = Aws::Utils::DateTime>
174 void SetExpiresAt(ExpiresAtT&& value) {
175 m_expiresAtHasBeenSet = true;
176 m_expiresAt = std::forward<ExpiresAtT>(value);
177 }
178 template <typename ExpiresAtT = Aws::Utils::DateTime>
180 SetExpiresAt(std::forward<ExpiresAtT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetAttributeFilters() const { return m_attributeFilters; }
191 inline bool AttributeFiltersHasBeenSet() const { return m_attributeFiltersHasBeenSet; }
192 template <typename AttributeFiltersT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
193 void SetAttributeFilters(AttributeFiltersT&& value) {
194 m_attributeFiltersHasBeenSet = true;
195 m_attributeFilters = std::forward<AttributeFiltersT>(value);
196 }
197 template <typename AttributeFiltersT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
199 SetAttributeFilters(std::forward<AttributeFiltersT>(value));
200 return *this;
201 }
202 template <typename AttributeFiltersT = Aws::Map<Aws::String, Aws::String>>
204 m_attributeFiltersHasBeenSet = true;
205 m_attributeFilters.emplace_back(std::forward<AttributeFiltersT>(value));
206 return *this;
207 }
209
211
214 inline const CaptureConfiguration& GetCaptureConfiguration() const { return m_captureConfiguration; }
215 inline bool CaptureConfigurationHasBeenSet() const { return m_captureConfigurationHasBeenSet; }
216 template <typename CaptureConfigurationT = CaptureConfiguration>
217 void SetCaptureConfiguration(CaptureConfigurationT&& value) {
218 m_captureConfigurationHasBeenSet = true;
219 m_captureConfiguration = std::forward<CaptureConfigurationT>(value);
220 }
221 template <typename CaptureConfigurationT = CaptureConfiguration>
223 SetCaptureConfiguration(std::forward<CaptureConfigurationT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
233 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
234 template <typename CreatedAtT = Aws::Utils::DateTime>
235 void SetCreatedAt(CreatedAtT&& value) {
236 m_createdAtHasBeenSet = true;
237 m_createdAt = std::forward<CreatedAtT>(value);
238 }
239 template <typename CreatedAtT = Aws::Utils::DateTime>
241 SetCreatedAt(std::forward<CreatedAtT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::String& GetARN() const { return m_aRN; }
251 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
252 template <typename ARNT = Aws::String>
253 void SetARN(ARNT&& value) {
254 m_aRNHasBeenSet = true;
255 m_aRN = std::forward<ARNT>(value);
256 }
257 template <typename ARNT = Aws::String>
259 SetARN(std::forward<ARNT>(value));
260 return *this;
261 }
263 private:
265
266 Aws::String m_service;
267
268 Aws::String m_environment;
269
271
272 Location m_location;
273
274 Aws::String m_locationHash;
275
276 Aws::String m_description;
277
278 Aws::Utils::DateTime m_expiresAt{};
279
281
282 CaptureConfiguration m_captureConfiguration;
283
284 Aws::Utils::DateTime m_createdAt{};
285
286 Aws::String m_aRN;
287 bool m_instrumentationTypeHasBeenSet = false;
288 bool m_serviceHasBeenSet = false;
289 bool m_environmentHasBeenSet = false;
290 bool m_signalTypeHasBeenSet = false;
291 bool m_locationHasBeenSet = false;
292 bool m_locationHashHasBeenSet = false;
293 bool m_descriptionHasBeenSet = false;
294 bool m_expiresAtHasBeenSet = false;
295 bool m_attributeFiltersHasBeenSet = false;
296 bool m_captureConfigurationHasBeenSet = false;
297 bool m_createdAtHasBeenSet = false;
298 bool m_aRNHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace ApplicationSignals
303} // namespace Aws
InstrumentationConfiguration & WithInstrumentationType(InstrumentationType value)
InstrumentationConfiguration & WithSignalType(DynamicInstrumentationSignalType value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeFilters() const
InstrumentationConfiguration & WithLocation(LocationT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
InstrumentationConfiguration & WithAttributeFilters(AttributeFiltersT &&value)
InstrumentationConfiguration & WithEnvironment(EnvironmentT &&value)
AWS_APPLICATIONSIGNALS_API InstrumentationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API InstrumentationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
InstrumentationConfiguration & WithCreatedAt(CreatedAtT &&value)
InstrumentationConfiguration & AddAttributeFilters(AttributeFiltersT &&value)
InstrumentationConfiguration & WithLocationHash(LocationHashT &&value)
AWS_APPLICATIONSIGNALS_API InstrumentationConfiguration()=default
InstrumentationConfiguration & WithCaptureConfiguration(CaptureConfigurationT &&value)
InstrumentationConfiguration & WithService(ServiceT &&value)
InstrumentationConfiguration & WithExpiresAt(ExpiresAtT &&value)
InstrumentationConfiguration & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue