AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateApplicationRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsightsRequest.h>
8#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ApplicationInsights {
15namespace Model {
16
20 public:
21 AWS_APPLICATIONINSIGHTS_API UpdateApplicationRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateApplication"; }
28
29 AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
30
31 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
38 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
39 template <typename ResourceGroupNameT = Aws::String>
40 void SetResourceGroupName(ResourceGroupNameT&& value) {
41 m_resourceGroupNameHasBeenSet = true;
42 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
43 }
44 template <typename ResourceGroupNameT = Aws::String>
45 UpdateApplicationRequest& WithResourceGroupName(ResourceGroupNameT&& value) {
46 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
47 return *this;
48 }
50
52
56 inline bool GetOpsCenterEnabled() const { return m_opsCenterEnabled; }
57 inline bool OpsCenterEnabledHasBeenSet() const { return m_opsCenterEnabledHasBeenSet; }
58 inline void SetOpsCenterEnabled(bool value) {
59 m_opsCenterEnabledHasBeenSet = true;
60 m_opsCenterEnabled = value;
61 }
64 return *this;
65 }
67
69
74 inline bool GetCWEMonitorEnabled() const { return m_cWEMonitorEnabled; }
75 inline bool CWEMonitorEnabledHasBeenSet() const { return m_cWEMonitorEnabledHasBeenSet; }
76 inline void SetCWEMonitorEnabled(bool value) {
77 m_cWEMonitorEnabledHasBeenSet = true;
78 m_cWEMonitorEnabled = value;
79 }
82 return *this;
83 }
85
87
92 inline const Aws::String& GetOpsItemSNSTopicArn() const { return m_opsItemSNSTopicArn; }
93 inline bool OpsItemSNSTopicArnHasBeenSet() const { return m_opsItemSNSTopicArnHasBeenSet; }
94 template <typename OpsItemSNSTopicArnT = Aws::String>
95 void SetOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) {
96 m_opsItemSNSTopicArnHasBeenSet = true;
97 m_opsItemSNSTopicArn = std::forward<OpsItemSNSTopicArnT>(value);
98 }
99 template <typename OpsItemSNSTopicArnT = Aws::String>
100 UpdateApplicationRequest& WithOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) {
101 SetOpsItemSNSTopicArn(std::forward<OpsItemSNSTopicArnT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetSNSNotificationArn() const { return m_sNSNotificationArn; }
112 inline bool SNSNotificationArnHasBeenSet() const { return m_sNSNotificationArnHasBeenSet; }
113 template <typename SNSNotificationArnT = Aws::String>
114 void SetSNSNotificationArn(SNSNotificationArnT&& value) {
115 m_sNSNotificationArnHasBeenSet = true;
116 m_sNSNotificationArn = std::forward<SNSNotificationArnT>(value);
117 }
118 template <typename SNSNotificationArnT = Aws::String>
119 UpdateApplicationRequest& WithSNSNotificationArn(SNSNotificationArnT&& value) {
120 SetSNSNotificationArn(std::forward<SNSNotificationArnT>(value));
121 return *this;
122 }
124
126
130 inline bool GetRemoveSNSTopic() const { return m_removeSNSTopic; }
131 inline bool RemoveSNSTopicHasBeenSet() const { return m_removeSNSTopicHasBeenSet; }
132 inline void SetRemoveSNSTopic(bool value) {
133 m_removeSNSTopicHasBeenSet = true;
134 m_removeSNSTopic = value;
135 }
137 SetRemoveSNSTopic(value);
138 return *this;
139 }
141
143
146 inline bool GetAutoConfigEnabled() const { return m_autoConfigEnabled; }
147 inline bool AutoConfigEnabledHasBeenSet() const { return m_autoConfigEnabledHasBeenSet; }
148 inline void SetAutoConfigEnabled(bool value) {
149 m_autoConfigEnabledHasBeenSet = true;
150 m_autoConfigEnabled = value;
151 }
154 return *this;
155 }
157
159
163 inline bool GetAttachMissingPermission() const { return m_attachMissingPermission; }
164 inline bool AttachMissingPermissionHasBeenSet() const { return m_attachMissingPermissionHasBeenSet; }
165 inline void SetAttachMissingPermission(bool value) {
166 m_attachMissingPermissionHasBeenSet = true;
167 m_attachMissingPermission = value;
168 }
171 return *this;
172 }
174 private:
175 Aws::String m_resourceGroupName;
176
177 bool m_opsCenterEnabled{false};
178
179 bool m_cWEMonitorEnabled{false};
180
181 Aws::String m_opsItemSNSTopicArn;
182
183 Aws::String m_sNSNotificationArn;
184
185 bool m_removeSNSTopic{false};
186
187 bool m_autoConfigEnabled{false};
188
189 bool m_attachMissingPermission{false};
190 bool m_resourceGroupNameHasBeenSet = false;
191 bool m_opsCenterEnabledHasBeenSet = false;
192 bool m_cWEMonitorEnabledHasBeenSet = false;
193 bool m_opsItemSNSTopicArnHasBeenSet = false;
194 bool m_sNSNotificationArnHasBeenSet = false;
195 bool m_removeSNSTopicHasBeenSet = false;
196 bool m_autoConfigEnabledHasBeenSet = false;
197 bool m_attachMissingPermissionHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace ApplicationInsights
202} // namespace Aws
UpdateApplicationRequest & WithOpsItemSNSTopicArn(OpsItemSNSTopicArnT &&value)
AWS_APPLICATIONINSIGHTS_API UpdateApplicationRequest()=default
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
UpdateApplicationRequest & WithResourceGroupName(ResourceGroupNameT &&value)
UpdateApplicationRequest & WithSNSNotificationArn(SNSNotificationArnT &&value)
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String