AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AppMonitorConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rum/CloudWatchRUM_EXPORTS.h>
10#include <aws/rum/model/Telemetry.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchRUM {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCHRUM_API AppMonitorConfiguration() = default;
33 AWS_CLOUDWATCHRUM_API AppMonitorConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
43 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
44 template <typename IdentityPoolIdT = Aws::String>
45 void SetIdentityPoolId(IdentityPoolIdT&& value) {
46 m_identityPoolIdHasBeenSet = true;
47 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
48 }
49 template <typename IdentityPoolIdT = Aws::String>
50 AppMonitorConfiguration& WithIdentityPoolId(IdentityPoolIdT&& value) {
51 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<Aws::String>& GetExcludedPages() const { return m_excludedPages; }
63 inline bool ExcludedPagesHasBeenSet() const { return m_excludedPagesHasBeenSet; }
64 template <typename ExcludedPagesT = Aws::Vector<Aws::String>>
65 void SetExcludedPages(ExcludedPagesT&& value) {
66 m_excludedPagesHasBeenSet = true;
67 m_excludedPages = std::forward<ExcludedPagesT>(value);
68 }
69 template <typename ExcludedPagesT = Aws::Vector<Aws::String>>
70 AppMonitorConfiguration& WithExcludedPages(ExcludedPagesT&& value) {
71 SetExcludedPages(std::forward<ExcludedPagesT>(value));
72 return *this;
73 }
74 template <typename ExcludedPagesT = Aws::String>
75 AppMonitorConfiguration& AddExcludedPages(ExcludedPagesT&& value) {
76 m_excludedPagesHasBeenSet = true;
77 m_excludedPages.emplace_back(std::forward<ExcludedPagesT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::Vector<Aws::String>& GetIncludedPages() const { return m_includedPages; }
90 inline bool IncludedPagesHasBeenSet() const { return m_includedPagesHasBeenSet; }
91 template <typename IncludedPagesT = Aws::Vector<Aws::String>>
92 void SetIncludedPages(IncludedPagesT&& value) {
93 m_includedPagesHasBeenSet = true;
94 m_includedPages = std::forward<IncludedPagesT>(value);
95 }
96 template <typename IncludedPagesT = Aws::Vector<Aws::String>>
97 AppMonitorConfiguration& WithIncludedPages(IncludedPagesT&& value) {
98 SetIncludedPages(std::forward<IncludedPagesT>(value));
99 return *this;
100 }
101 template <typename IncludedPagesT = Aws::String>
102 AppMonitorConfiguration& AddIncludedPages(IncludedPagesT&& value) {
103 m_includedPagesHasBeenSet = true;
104 m_includedPages.emplace_back(std::forward<IncludedPagesT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::String>& GetFavoritePages() const { return m_favoritePages; }
115 inline bool FavoritePagesHasBeenSet() const { return m_favoritePagesHasBeenSet; }
116 template <typename FavoritePagesT = Aws::Vector<Aws::String>>
117 void SetFavoritePages(FavoritePagesT&& value) {
118 m_favoritePagesHasBeenSet = true;
119 m_favoritePages = std::forward<FavoritePagesT>(value);
120 }
121 template <typename FavoritePagesT = Aws::Vector<Aws::String>>
123 SetFavoritePages(std::forward<FavoritePagesT>(value));
124 return *this;
125 }
126 template <typename FavoritePagesT = Aws::String>
127 AppMonitorConfiguration& AddFavoritePages(FavoritePagesT&& value) {
128 m_favoritePagesHasBeenSet = true;
129 m_favoritePages.emplace_back(std::forward<FavoritePagesT>(value));
130 return *this;
131 }
133
135
143 inline double GetSessionSampleRate() const { return m_sessionSampleRate; }
144 inline bool SessionSampleRateHasBeenSet() const { return m_sessionSampleRateHasBeenSet; }
145 inline void SetSessionSampleRate(double value) {
146 m_sessionSampleRateHasBeenSet = true;
147 m_sessionSampleRate = value;
148 }
151 return *this;
152 }
154
156
173 inline const Aws::String& GetGuestRoleArn() const { return m_guestRoleArn; }
174 inline bool GuestRoleArnHasBeenSet() const { return m_guestRoleArnHasBeenSet; }
175 template <typename GuestRoleArnT = Aws::String>
176 void SetGuestRoleArn(GuestRoleArnT&& value) {
177 m_guestRoleArnHasBeenSet = true;
178 m_guestRoleArn = std::forward<GuestRoleArnT>(value);
179 }
180 template <typename GuestRoleArnT = Aws::String>
182 SetGuestRoleArn(std::forward<GuestRoleArnT>(value));
183 return *this;
184 }
186
188
195 inline bool GetAllowCookies() const { return m_allowCookies; }
196 inline bool AllowCookiesHasBeenSet() const { return m_allowCookiesHasBeenSet; }
197 inline void SetAllowCookies(bool value) {
198 m_allowCookiesHasBeenSet = true;
199 m_allowCookies = value;
200 }
202 SetAllowCookies(value);
203 return *this;
204 }
206
208
217 inline const Aws::Vector<Telemetry>& GetTelemetries() const { return m_telemetries; }
218 inline bool TelemetriesHasBeenSet() const { return m_telemetriesHasBeenSet; }
219 template <typename TelemetriesT = Aws::Vector<Telemetry>>
220 void SetTelemetries(TelemetriesT&& value) {
221 m_telemetriesHasBeenSet = true;
222 m_telemetries = std::forward<TelemetriesT>(value);
223 }
224 template <typename TelemetriesT = Aws::Vector<Telemetry>>
226 SetTelemetries(std::forward<TelemetriesT>(value));
227 return *this;
228 }
230 m_telemetriesHasBeenSet = true;
231 m_telemetries.push_back(value);
232 return *this;
233 }
235
237
246 inline bool GetEnableXRay() const { return m_enableXRay; }
247 inline bool EnableXRayHasBeenSet() const { return m_enableXRayHasBeenSet; }
248 inline void SetEnableXRay(bool value) {
249 m_enableXRayHasBeenSet = true;
250 m_enableXRay = value;
251 }
253 SetEnableXRay(value);
254 return *this;
255 }
257 private:
258 Aws::String m_identityPoolId;
259
260 Aws::Vector<Aws::String> m_excludedPages;
261
262 Aws::Vector<Aws::String> m_includedPages;
263
264 Aws::Vector<Aws::String> m_favoritePages;
265
266 double m_sessionSampleRate{0.0};
267
268 Aws::String m_guestRoleArn;
269
270 bool m_allowCookies{false};
271
272 Aws::Vector<Telemetry> m_telemetries;
273
274 bool m_enableXRay{false};
275 bool m_identityPoolIdHasBeenSet = false;
276 bool m_excludedPagesHasBeenSet = false;
277 bool m_includedPagesHasBeenSet = false;
278 bool m_favoritePagesHasBeenSet = false;
279 bool m_sessionSampleRateHasBeenSet = false;
280 bool m_guestRoleArnHasBeenSet = false;
281 bool m_allowCookiesHasBeenSet = false;
282 bool m_telemetriesHasBeenSet = false;
283 bool m_enableXRayHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace CloudWatchRUM
288} // namespace Aws
AppMonitorConfiguration & WithIdentityPoolId(IdentityPoolIdT &&value)
AppMonitorConfiguration & WithAllowCookies(bool value)
AppMonitorConfiguration & WithIncludedPages(IncludedPagesT &&value)
AppMonitorConfiguration & WithSessionSampleRate(double value)
AppMonitorConfiguration & AddIncludedPages(IncludedPagesT &&value)
const Aws::Vector< Telemetry > & GetTelemetries() const
AWS_CLOUDWATCHRUM_API AppMonitorConfiguration()=default
AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const
AppMonitorConfiguration & WithExcludedPages(ExcludedPagesT &&value)
AWS_CLOUDWATCHRUM_API AppMonitorConfiguration(Aws::Utils::Json::JsonView jsonValue)
AppMonitorConfiguration & WithGuestRoleArn(GuestRoleArnT &&value)
AppMonitorConfiguration & WithFavoritePages(FavoritePagesT &&value)
AppMonitorConfiguration & AddFavoritePages(FavoritePagesT &&value)
AWS_CLOUDWATCHRUM_API AppMonitorConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AppMonitorConfiguration & WithTelemetries(TelemetriesT &&value)
const Aws::Vector< Aws::String > & GetFavoritePages() const
AppMonitorConfiguration & AddExcludedPages(ExcludedPagesT &&value)
const Aws::Vector< Aws::String > & GetIncludedPages() const
const Aws::Vector< Aws::String > & GetExcludedPages() const
AppMonitorConfiguration & AddTelemetries(Telemetry 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