AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsightsRequest.h>
8#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
9#include <aws/application-insights/model/GroupingType.h>
10#include <aws/application-insights/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ApplicationInsights {
18namespace Model {
19
23 public:
24 AWS_APPLICATIONINSIGHTS_API CreateApplicationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
31
32 AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
33
34 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
41 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
42 template <typename ResourceGroupNameT = Aws::String>
43 void SetResourceGroupName(ResourceGroupNameT&& value) {
44 m_resourceGroupNameHasBeenSet = true;
45 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
46 }
47 template <typename ResourceGroupNameT = Aws::String>
48 CreateApplicationRequest& WithResourceGroupName(ResourceGroupNameT&& value) {
49 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
50 return *this;
51 }
53
55
59 inline bool GetOpsCenterEnabled() const { return m_opsCenterEnabled; }
60 inline bool OpsCenterEnabledHasBeenSet() const { return m_opsCenterEnabledHasBeenSet; }
61 inline void SetOpsCenterEnabled(bool value) {
62 m_opsCenterEnabledHasBeenSet = true;
63 m_opsCenterEnabled = value;
64 }
67 return *this;
68 }
70
72
77 inline bool GetCWEMonitorEnabled() const { return m_cWEMonitorEnabled; }
78 inline bool CWEMonitorEnabledHasBeenSet() const { return m_cWEMonitorEnabledHasBeenSet; }
79 inline void SetCWEMonitorEnabled(bool value) {
80 m_cWEMonitorEnabledHasBeenSet = true;
81 m_cWEMonitorEnabled = value;
82 }
85 return *this;
86 }
88
90
95 inline const Aws::String& GetOpsItemSNSTopicArn() const { return m_opsItemSNSTopicArn; }
96 inline bool OpsItemSNSTopicArnHasBeenSet() const { return m_opsItemSNSTopicArnHasBeenSet; }
97 template <typename OpsItemSNSTopicArnT = Aws::String>
98 void SetOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) {
99 m_opsItemSNSTopicArnHasBeenSet = true;
100 m_opsItemSNSTopicArn = std::forward<OpsItemSNSTopicArnT>(value);
101 }
102 template <typename OpsItemSNSTopicArnT = Aws::String>
103 CreateApplicationRequest& WithOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) {
104 SetOpsItemSNSTopicArn(std::forward<OpsItemSNSTopicArnT>(value));
105 return *this;
106 }
108
110
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 CreateApplicationRequest& WithSNSNotificationArn(SNSNotificationArnT&& value) {
122 SetSNSNotificationArn(std::forward<SNSNotificationArnT>(value));
123 return *this;
124 }
126
128
133 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Aws::Vector<Tag>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Vector<Tag>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsT = Tag>
147 m_tagsHasBeenSet = true;
148 m_tags.emplace_back(std::forward<TagsT>(value));
149 return *this;
150 }
152
154
158 inline bool GetAutoConfigEnabled() const { return m_autoConfigEnabled; }
159 inline bool AutoConfigEnabledHasBeenSet() const { return m_autoConfigEnabledHasBeenSet; }
160 inline void SetAutoConfigEnabled(bool value) {
161 m_autoConfigEnabledHasBeenSet = true;
162 m_autoConfigEnabled = value;
163 }
166 return *this;
167 }
169
171
175 inline bool GetAutoCreate() const { return m_autoCreate; }
176 inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
177 inline void SetAutoCreate(bool value) {
178 m_autoCreateHasBeenSet = true;
179 m_autoCreate = value;
180 }
182 SetAutoCreate(value);
183 return *this;
184 }
186
188
193 inline GroupingType GetGroupingType() const { return m_groupingType; }
194 inline bool GroupingTypeHasBeenSet() const { return m_groupingTypeHasBeenSet; }
195 inline void SetGroupingType(GroupingType value) {
196 m_groupingTypeHasBeenSet = true;
197 m_groupingType = value;
198 }
200 SetGroupingType(value);
201 return *this;
202 }
204
206
210 inline bool GetAttachMissingPermission() const { return m_attachMissingPermission; }
211 inline bool AttachMissingPermissionHasBeenSet() const { return m_attachMissingPermissionHasBeenSet; }
212 inline void SetAttachMissingPermission(bool value) {
213 m_attachMissingPermissionHasBeenSet = true;
214 m_attachMissingPermission = value;
215 }
218 return *this;
219 }
221 private:
222 Aws::String m_resourceGroupName;
223
224 bool m_opsCenterEnabled{false};
225
226 bool m_cWEMonitorEnabled{false};
227
228 Aws::String m_opsItemSNSTopicArn;
229
230 Aws::String m_sNSNotificationArn;
231
232 Aws::Vector<Tag> m_tags;
233
234 bool m_autoConfigEnabled{false};
235
236 bool m_autoCreate{false};
237
238 GroupingType m_groupingType{GroupingType::NOT_SET};
239
240 bool m_attachMissingPermission{false};
241 bool m_resourceGroupNameHasBeenSet = false;
242 bool m_opsCenterEnabledHasBeenSet = false;
243 bool m_cWEMonitorEnabledHasBeenSet = false;
244 bool m_opsItemSNSTopicArnHasBeenSet = false;
245 bool m_sNSNotificationArnHasBeenSet = false;
246 bool m_tagsHasBeenSet = false;
247 bool m_autoConfigEnabledHasBeenSet = false;
248 bool m_autoCreateHasBeenSet = false;
249 bool m_groupingTypeHasBeenSet = false;
250 bool m_attachMissingPermissionHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace ApplicationInsights
255} // namespace Aws
CreateApplicationRequest & WithResourceGroupName(ResourceGroupNameT &&value)
AWS_APPLICATIONINSIGHTS_API CreateApplicationRequest()=default
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithSNSNotificationArn(SNSNotificationArnT &&value)
CreateApplicationRequest & WithOpsItemSNSTopicArn(OpsItemSNSTopicArnT &&value)
CreateApplicationRequest & WithGroupingType(GroupingType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector