AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateAppMonitorRequest.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/CloudWatchRUMRequest.h>
10#include <aws/rum/CloudWatchRUM_EXPORTS.h>
11#include <aws/rum/model/AppMonitorConfiguration.h>
12#include <aws/rum/model/CustomEvents.h>
13#include <aws/rum/model/DeobfuscationConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudWatchRUM {
19namespace Model {
20
24 public:
25 AWS_CLOUDWATCHRUM_API UpdateAppMonitorRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAppMonitor"; }
32
33 AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDomain() const { return m_domain; }
59 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
60 template <typename DomainT = Aws::String>
61 void SetDomain(DomainT&& value) {
62 m_domainHasBeenSet = true;
63 m_domain = std::forward<DomainT>(value);
64 }
65 template <typename DomainT = Aws::String>
67 SetDomain(std::forward<DomainT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::Vector<Aws::String>& GetDomainList() const { return m_domainList; }
79 inline bool DomainListHasBeenSet() const { return m_domainListHasBeenSet; }
80 template <typename DomainListT = Aws::Vector<Aws::String>>
81 void SetDomainList(DomainListT&& value) {
82 m_domainListHasBeenSet = true;
83 m_domainList = std::forward<DomainListT>(value);
84 }
85 template <typename DomainListT = Aws::Vector<Aws::String>>
87 SetDomainList(std::forward<DomainListT>(value));
88 return *this;
89 }
90 template <typename DomainListT = Aws::String>
91 UpdateAppMonitorRequest& AddDomainList(DomainListT&& value) {
92 m_domainListHasBeenSet = true;
93 m_domainList.emplace_back(std::forward<DomainListT>(value));
94 return *this;
95 }
97
99
109 inline const AppMonitorConfiguration& GetAppMonitorConfiguration() const { return m_appMonitorConfiguration; }
110 inline bool AppMonitorConfigurationHasBeenSet() const { return m_appMonitorConfigurationHasBeenSet; }
111 template <typename AppMonitorConfigurationT = AppMonitorConfiguration>
112 void SetAppMonitorConfiguration(AppMonitorConfigurationT&& value) {
113 m_appMonitorConfigurationHasBeenSet = true;
114 m_appMonitorConfiguration = std::forward<AppMonitorConfigurationT>(value);
115 }
116 template <typename AppMonitorConfigurationT = AppMonitorConfiguration>
117 UpdateAppMonitorRequest& WithAppMonitorConfiguration(AppMonitorConfigurationT&& value) {
118 SetAppMonitorConfiguration(std::forward<AppMonitorConfigurationT>(value));
119 return *this;
120 }
122
124
130 inline bool GetCwLogEnabled() const { return m_cwLogEnabled; }
131 inline bool CwLogEnabledHasBeenSet() const { return m_cwLogEnabledHasBeenSet; }
132 inline void SetCwLogEnabled(bool value) {
133 m_cwLogEnabledHasBeenSet = true;
134 m_cwLogEnabled = value;
135 }
137 SetCwLogEnabled(value);
138 return *this;
139 }
141
143
150 inline const CustomEvents& GetCustomEvents() const { return m_customEvents; }
151 inline bool CustomEventsHasBeenSet() const { return m_customEventsHasBeenSet; }
152 template <typename CustomEventsT = CustomEvents>
153 void SetCustomEvents(CustomEventsT&& value) {
154 m_customEventsHasBeenSet = true;
155 m_customEvents = std::forward<CustomEventsT>(value);
156 }
157 template <typename CustomEventsT = CustomEvents>
159 SetCustomEvents(std::forward<CustomEventsT>(value));
160 return *this;
161 }
163
165
169 inline const DeobfuscationConfiguration& GetDeobfuscationConfiguration() const { return m_deobfuscationConfiguration; }
170 inline bool DeobfuscationConfigurationHasBeenSet() const { return m_deobfuscationConfigurationHasBeenSet; }
171 template <typename DeobfuscationConfigurationT = DeobfuscationConfiguration>
172 void SetDeobfuscationConfiguration(DeobfuscationConfigurationT&& value) {
173 m_deobfuscationConfigurationHasBeenSet = true;
174 m_deobfuscationConfiguration = std::forward<DeobfuscationConfigurationT>(value);
175 }
176 template <typename DeobfuscationConfigurationT = DeobfuscationConfiguration>
177 UpdateAppMonitorRequest& WithDeobfuscationConfiguration(DeobfuscationConfigurationT&& value) {
178 SetDeobfuscationConfiguration(std::forward<DeobfuscationConfigurationT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_name;
184
185 Aws::String m_domain;
186
187 Aws::Vector<Aws::String> m_domainList;
188
189 AppMonitorConfiguration m_appMonitorConfiguration;
190
191 bool m_cwLogEnabled{false};
192
193 CustomEvents m_customEvents;
194
195 DeobfuscationConfiguration m_deobfuscationConfiguration;
196 bool m_nameHasBeenSet = false;
197 bool m_domainHasBeenSet = false;
198 bool m_domainListHasBeenSet = false;
199 bool m_appMonitorConfigurationHasBeenSet = false;
200 bool m_cwLogEnabledHasBeenSet = false;
201 bool m_customEventsHasBeenSet = false;
202 bool m_deobfuscationConfigurationHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace CloudWatchRUM
207} // namespace Aws
AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override
UpdateAppMonitorRequest & WithName(NameT &&value)
UpdateAppMonitorRequest & WithDeobfuscationConfiguration(DeobfuscationConfigurationT &&value)
AWS_CLOUDWATCHRUM_API UpdateAppMonitorRequest()=default
void SetAppMonitorConfiguration(AppMonitorConfigurationT &&value)
UpdateAppMonitorRequest & WithCustomEvents(CustomEventsT &&value)
UpdateAppMonitorRequest & WithDomainList(DomainListT &&value)
void SetDeobfuscationConfiguration(DeobfuscationConfigurationT &&value)
UpdateAppMonitorRequest & WithDomain(DomainT &&value)
const Aws::Vector< Aws::String > & GetDomainList() const
virtual const char * GetServiceRequestName() const override
const DeobfuscationConfiguration & GetDeobfuscationConfiguration() const
UpdateAppMonitorRequest & WithAppMonitorConfiguration(AppMonitorConfigurationT &&value)
UpdateAppMonitorRequest & WithCwLogEnabled(bool value)
const AppMonitorConfiguration & GetAppMonitorConfiguration() const
UpdateAppMonitorRequest & AddDomainList(DomainListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector