AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
CreateInstrumentationConfigurationRequest.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignalsRequest.h>
8#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
9#include <aws/application-signals/model/CaptureConfiguration.h>
10#include <aws/application-signals/model/DynamicInstrumentationSignalType.h>
11#include <aws/application-signals/model/InstrumentationType.h>
12#include <aws/application-signals/model/Location.h>
13#include <aws/application-signals/model/Tag.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace ApplicationSignals {
23namespace Model {
24
28 public:
29 AWS_APPLICATIONSIGNALS_API CreateInstrumentationConfigurationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateInstrumentationConfiguration"; }
36
37 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
38
40
43 inline InstrumentationType GetInstrumentationType() const { return m_instrumentationType; }
44 inline bool InstrumentationTypeHasBeenSet() const { return m_instrumentationTypeHasBeenSet; }
46 m_instrumentationTypeHasBeenSet = true;
47 m_instrumentationType = value;
48 }
51 return *this;
52 }
54
56
60 inline const Aws::String& GetService() const { return m_service; }
61 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
62 template <typename ServiceT = Aws::String>
63 void SetService(ServiceT&& value) {
64 m_serviceHasBeenSet = true;
65 m_service = std::forward<ServiceT>(value);
66 }
67 template <typename ServiceT = Aws::String>
69 SetService(std::forward<ServiceT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetEnvironment() const { return m_environment; }
80 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
81 template <typename EnvironmentT = Aws::String>
82 void SetEnvironment(EnvironmentT&& value) {
83 m_environmentHasBeenSet = true;
84 m_environment = std::forward<EnvironmentT>(value);
85 }
86 template <typename EnvironmentT = Aws::String>
88 SetEnvironment(std::forward<EnvironmentT>(value));
89 return *this;
90 }
92
94
98 inline DynamicInstrumentationSignalType GetSignalType() const { return m_signalType; }
99 inline bool SignalTypeHasBeenSet() const { return m_signalTypeHasBeenSet; }
101 m_signalTypeHasBeenSet = true;
102 m_signalType = value;
103 }
105 SetSignalType(value);
106 return *this;
107 }
109
111
115 inline const Location& GetLocation() const { return m_location; }
116 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
117 template <typename LocationT = Location>
118 void SetLocation(LocationT&& value) {
119 m_locationHasBeenSet = true;
120 m_location = std::forward<LocationT>(value);
121 }
122 template <typename LocationT = Location>
124 SetLocation(std::forward<LocationT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetDescription() const { return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 template <typename DescriptionT = Aws::String>
137 void SetDescription(DescriptionT&& value) {
138 m_descriptionHasBeenSet = true;
139 m_description = std::forward<DescriptionT>(value);
140 }
141 template <typename DescriptionT = Aws::String>
143 SetDescription(std::forward<DescriptionT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
155 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
156 template <typename ExpiresAtT = Aws::Utils::DateTime>
157 void SetExpiresAt(ExpiresAtT&& value) {
158 m_expiresAtHasBeenSet = true;
159 m_expiresAt = std::forward<ExpiresAtT>(value);
160 }
161 template <typename ExpiresAtT = Aws::Utils::DateTime>
163 SetExpiresAt(std::forward<ExpiresAtT>(value));
164 return *this;
165 }
167
169
174 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetAttributeFilters() const { return m_attributeFilters; }
175 inline bool AttributeFiltersHasBeenSet() const { return m_attributeFiltersHasBeenSet; }
176 template <typename AttributeFiltersT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
177 void SetAttributeFilters(AttributeFiltersT&& value) {
178 m_attributeFiltersHasBeenSet = true;
179 m_attributeFilters = std::forward<AttributeFiltersT>(value);
180 }
181 template <typename AttributeFiltersT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
183 SetAttributeFilters(std::forward<AttributeFiltersT>(value));
184 return *this;
185 }
186 template <typename AttributeFiltersT = Aws::Map<Aws::String, Aws::String>>
188 m_attributeFiltersHasBeenSet = true;
189 m_attributeFilters.emplace_back(std::forward<AttributeFiltersT>(value));
190 return *this;
191 }
193
195
199 inline const CaptureConfiguration& GetCaptureConfiguration() const { return m_captureConfiguration; }
200 inline bool CaptureConfigurationHasBeenSet() const { return m_captureConfigurationHasBeenSet; }
201 template <typename CaptureConfigurationT = CaptureConfiguration>
202 void SetCaptureConfiguration(CaptureConfigurationT&& value) {
203 m_captureConfigurationHasBeenSet = true;
204 m_captureConfiguration = std::forward<CaptureConfigurationT>(value);
205 }
206 template <typename CaptureConfigurationT = CaptureConfiguration>
208 SetCaptureConfiguration(std::forward<CaptureConfigurationT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template <typename TagsT = Aws::Vector<Tag>>
221 void SetTags(TagsT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags = std::forward<TagsT>(value);
224 }
225 template <typename TagsT = Aws::Vector<Tag>>
227 SetTags(std::forward<TagsT>(value));
228 return *this;
229 }
230 template <typename TagsT = Tag>
232 m_tagsHasBeenSet = true;
233 m_tags.emplace_back(std::forward<TagsT>(value));
234 return *this;
235 }
237 private:
239
240 Aws::String m_service;
241
242 Aws::String m_environment;
243
245
246 Location m_location;
247
248 Aws::String m_description;
249
250 Aws::Utils::DateTime m_expiresAt{};
251
253
254 CaptureConfiguration m_captureConfiguration;
255
256 Aws::Vector<Tag> m_tags;
257 bool m_instrumentationTypeHasBeenSet = false;
258 bool m_serviceHasBeenSet = false;
259 bool m_environmentHasBeenSet = false;
260 bool m_signalTypeHasBeenSet = false;
261 bool m_locationHasBeenSet = false;
262 bool m_descriptionHasBeenSet = false;
263 bool m_expiresAtHasBeenSet = false;
264 bool m_attributeFiltersHasBeenSet = false;
265 bool m_captureConfigurationHasBeenSet = false;
266 bool m_tagsHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace ApplicationSignals
271} // namespace Aws
CreateInstrumentationConfigurationRequest & WithEnvironment(EnvironmentT &&value)
CreateInstrumentationConfigurationRequest & WithAttributeFilters(AttributeFiltersT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetAttributeFilters() const
CreateInstrumentationConfigurationRequest & WithDescription(DescriptionT &&value)
CreateInstrumentationConfigurationRequest & AddAttributeFilters(AttributeFiltersT &&value)
CreateInstrumentationConfigurationRequest & WithSignalType(DynamicInstrumentationSignalType value)
AWS_APPLICATIONSIGNALS_API CreateInstrumentationConfigurationRequest()=default
CreateInstrumentationConfigurationRequest & WithInstrumentationType(InstrumentationType value)
AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override
CreateInstrumentationConfigurationRequest & WithCaptureConfiguration(CaptureConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector