AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ApplicationInfo.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/model/DiscoveryType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationInsights {
21namespace Model {
22
29 public:
30 AWS_APPLICATIONINSIGHTS_API ApplicationInfo() = default;
31 AWS_APPLICATIONINSIGHTS_API ApplicationInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONINSIGHTS_API ApplicationInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 ApplicationInfo& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
58 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
59 template <typename ResourceGroupNameT = Aws::String>
60 void SetResourceGroupName(ResourceGroupNameT&& value) {
61 m_resourceGroupNameHasBeenSet = true;
62 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
63 }
64 template <typename ResourceGroupNameT = Aws::String>
65 ApplicationInfo& WithResourceGroupName(ResourceGroupNameT&& value) {
66 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetLifeCycle() const { return m_lifeCycle; }
76 inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; }
77 template <typename LifeCycleT = Aws::String>
78 void SetLifeCycle(LifeCycleT&& value) {
79 m_lifeCycleHasBeenSet = true;
80 m_lifeCycle = std::forward<LifeCycleT>(value);
81 }
82 template <typename LifeCycleT = Aws::String>
83 ApplicationInfo& WithLifeCycle(LifeCycleT&& value) {
84 SetLifeCycle(std::forward<LifeCycleT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetOpsItemSNSTopicArn() const { return m_opsItemSNSTopicArn; }
95 inline bool OpsItemSNSTopicArnHasBeenSet() const { return m_opsItemSNSTopicArnHasBeenSet; }
96 template <typename OpsItemSNSTopicArnT = Aws::String>
97 void SetOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) {
98 m_opsItemSNSTopicArnHasBeenSet = true;
99 m_opsItemSNSTopicArn = std::forward<OpsItemSNSTopicArnT>(value);
100 }
101 template <typename OpsItemSNSTopicArnT = Aws::String>
102 ApplicationInfo& WithOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) {
103 SetOpsItemSNSTopicArn(std::forward<OpsItemSNSTopicArnT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetSNSNotificationArn() const { return m_sNSNotificationArn; }
114 inline bool SNSNotificationArnHasBeenSet() const { return m_sNSNotificationArnHasBeenSet; }
115 template <typename SNSNotificationArnT = Aws::String>
116 void SetSNSNotificationArn(SNSNotificationArnT&& value) {
117 m_sNSNotificationArnHasBeenSet = true;
118 m_sNSNotificationArn = std::forward<SNSNotificationArnT>(value);
119 }
120 template <typename SNSNotificationArnT = Aws::String>
121 ApplicationInfo& WithSNSNotificationArn(SNSNotificationArnT&& value) {
122 SetSNSNotificationArn(std::forward<SNSNotificationArnT>(value));
123 return *this;
124 }
126
128
132 inline bool GetOpsCenterEnabled() const { return m_opsCenterEnabled; }
133 inline bool OpsCenterEnabledHasBeenSet() const { return m_opsCenterEnabledHasBeenSet; }
134 inline void SetOpsCenterEnabled(bool value) {
135 m_opsCenterEnabledHasBeenSet = true;
136 m_opsCenterEnabled = value;
137 }
139 SetOpsCenterEnabled(value);
140 return *this;
141 }
143
145
150 inline bool GetCWEMonitorEnabled() const { return m_cWEMonitorEnabled; }
151 inline bool CWEMonitorEnabledHasBeenSet() const { return m_cWEMonitorEnabledHasBeenSet; }
152 inline void SetCWEMonitorEnabled(bool value) {
153 m_cWEMonitorEnabledHasBeenSet = true;
154 m_cWEMonitorEnabled = value;
155 }
158 return *this;
159 }
161
163
169 inline const Aws::String& GetRemarks() const { return m_remarks; }
170 inline bool RemarksHasBeenSet() const { return m_remarksHasBeenSet; }
171 template <typename RemarksT = Aws::String>
172 void SetRemarks(RemarksT&& value) {
173 m_remarksHasBeenSet = true;
174 m_remarks = std::forward<RemarksT>(value);
175 }
176 template <typename RemarksT = Aws::String>
177 ApplicationInfo& WithRemarks(RemarksT&& value) {
178 SetRemarks(std::forward<RemarksT>(value));
179 return *this;
180 }
182
184
187 inline bool GetAutoConfigEnabled() const { return m_autoConfigEnabled; }
188 inline bool AutoConfigEnabledHasBeenSet() const { return m_autoConfigEnabledHasBeenSet; }
189 inline void SetAutoConfigEnabled(bool value) {
190 m_autoConfigEnabledHasBeenSet = true;
191 m_autoConfigEnabled = value;
192 }
195 return *this;
196 }
198
200
203 inline DiscoveryType GetDiscoveryType() const { return m_discoveryType; }
204 inline bool DiscoveryTypeHasBeenSet() const { return m_discoveryTypeHasBeenSet; }
205 inline void SetDiscoveryType(DiscoveryType value) {
206 m_discoveryTypeHasBeenSet = true;
207 m_discoveryType = value;
208 }
210 SetDiscoveryType(value);
211 return *this;
212 }
214
216
220 inline bool GetAttachMissingPermission() const { return m_attachMissingPermission; }
221 inline bool AttachMissingPermissionHasBeenSet() const { return m_attachMissingPermissionHasBeenSet; }
222 inline void SetAttachMissingPermission(bool value) {
223 m_attachMissingPermissionHasBeenSet = true;
224 m_attachMissingPermission = value;
225 }
228 return *this;
229 }
231 private:
232 Aws::String m_accountId;
233
234 Aws::String m_resourceGroupName;
235
236 Aws::String m_lifeCycle;
237
238 Aws::String m_opsItemSNSTopicArn;
239
240 Aws::String m_sNSNotificationArn;
241
242 bool m_opsCenterEnabled{false};
243
244 bool m_cWEMonitorEnabled{false};
245
246 Aws::String m_remarks;
247
248 bool m_autoConfigEnabled{false};
249
250 DiscoveryType m_discoveryType{DiscoveryType::NOT_SET};
251
252 bool m_attachMissingPermission{false};
253 bool m_accountIdHasBeenSet = false;
254 bool m_resourceGroupNameHasBeenSet = false;
255 bool m_lifeCycleHasBeenSet = false;
256 bool m_opsItemSNSTopicArnHasBeenSet = false;
257 bool m_sNSNotificationArnHasBeenSet = false;
258 bool m_opsCenterEnabledHasBeenSet = false;
259 bool m_cWEMonitorEnabledHasBeenSet = false;
260 bool m_remarksHasBeenSet = false;
261 bool m_autoConfigEnabledHasBeenSet = false;
262 bool m_discoveryTypeHasBeenSet = false;
263 bool m_attachMissingPermissionHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace ApplicationInsights
268} // namespace Aws
ApplicationInfo & WithRemarks(RemarksT &&value)
ApplicationInfo & WithAutoConfigEnabled(bool value)
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONINSIGHTS_API ApplicationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationInfo & WithCWEMonitorEnabled(bool value)
void SetSNSNotificationArn(SNSNotificationArnT &&value)
AWS_APPLICATIONINSIGHTS_API ApplicationInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONINSIGHTS_API ApplicationInfo()=default
ApplicationInfo & WithOpsCenterEnabled(bool value)
void SetResourceGroupName(ResourceGroupNameT &&value)
void SetOpsItemSNSTopicArn(OpsItemSNSTopicArnT &&value)
ApplicationInfo & WithResourceGroupName(ResourceGroupNameT &&value)
ApplicationInfo & WithSNSNotificationArn(SNSNotificationArnT &&value)
ApplicationInfo & WithLifeCycle(LifeCycleT &&value)
ApplicationInfo & WithAccountId(AccountIdT &&value)
ApplicationInfo & WithAttachMissingPermission(bool value)
ApplicationInfo & WithDiscoveryType(DiscoveryType value)
ApplicationInfo & WithOpsItemSNSTopicArn(OpsItemSNSTopicArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue