AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/ApplicationInsightsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/application-insights/model/GroupingType.h>
12#include <aws/application-insights/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ApplicationInsights
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPLICATIONINSIGHTS_API CreateApplicationRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
34
35 AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
36
37 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; }
45 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
46 inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; }
47 inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); }
48 inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); }
50 inline CreateApplicationRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
51 inline CreateApplicationRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;}
53
55
59 inline bool GetOpsCenterEnabled() const{ return m_opsCenterEnabled; }
60 inline bool OpsCenterEnabledHasBeenSet() const { return m_opsCenterEnabledHasBeenSet; }
61 inline void SetOpsCenterEnabled(bool value) { m_opsCenterEnabledHasBeenSet = true; m_opsCenterEnabled = value; }
62 inline CreateApplicationRequest& WithOpsCenterEnabled(bool value) { SetOpsCenterEnabled(value); return *this;}
64
66
71 inline bool GetCWEMonitorEnabled() const{ return m_cWEMonitorEnabled; }
72 inline bool CWEMonitorEnabledHasBeenSet() const { return m_cWEMonitorEnabledHasBeenSet; }
73 inline void SetCWEMonitorEnabled(bool value) { m_cWEMonitorEnabledHasBeenSet = true; m_cWEMonitorEnabled = value; }
74 inline CreateApplicationRequest& WithCWEMonitorEnabled(bool value) { SetCWEMonitorEnabled(value); return *this;}
76
78
83 inline const Aws::String& GetOpsItemSNSTopicArn() const{ return m_opsItemSNSTopicArn; }
84 inline bool OpsItemSNSTopicArnHasBeenSet() const { return m_opsItemSNSTopicArnHasBeenSet; }
85 inline void SetOpsItemSNSTopicArn(const Aws::String& value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn = value; }
86 inline void SetOpsItemSNSTopicArn(Aws::String&& value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn = std::move(value); }
87 inline void SetOpsItemSNSTopicArn(const char* value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn.assign(value); }
89 inline CreateApplicationRequest& WithOpsItemSNSTopicArn(Aws::String&& value) { SetOpsItemSNSTopicArn(std::move(value)); return *this;}
90 inline CreateApplicationRequest& WithOpsItemSNSTopicArn(const char* value) { SetOpsItemSNSTopicArn(value); return *this;}
92
94
97 inline const Aws::String& GetSNSNotificationArn() const{ return m_sNSNotificationArn; }
98 inline bool SNSNotificationArnHasBeenSet() const { return m_sNSNotificationArnHasBeenSet; }
99 inline void SetSNSNotificationArn(const Aws::String& value) { m_sNSNotificationArnHasBeenSet = true; m_sNSNotificationArn = value; }
100 inline void SetSNSNotificationArn(Aws::String&& value) { m_sNSNotificationArnHasBeenSet = true; m_sNSNotificationArn = std::move(value); }
101 inline void SetSNSNotificationArn(const char* value) { m_sNSNotificationArnHasBeenSet = true; m_sNSNotificationArn.assign(value); }
103 inline CreateApplicationRequest& WithSNSNotificationArn(Aws::String&& value) { SetSNSNotificationArn(std::move(value)); return *this;}
104 inline CreateApplicationRequest& WithSNSNotificationArn(const char* value) { SetSNSNotificationArn(value); return *this;}
106
108
113 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118 inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122
124
128 inline bool GetAutoConfigEnabled() const{ return m_autoConfigEnabled; }
129 inline bool AutoConfigEnabledHasBeenSet() const { return m_autoConfigEnabledHasBeenSet; }
130 inline void SetAutoConfigEnabled(bool value) { m_autoConfigEnabledHasBeenSet = true; m_autoConfigEnabled = value; }
131 inline CreateApplicationRequest& WithAutoConfigEnabled(bool value) { SetAutoConfigEnabled(value); return *this;}
133
135
139 inline bool GetAutoCreate() const{ return m_autoCreate; }
140 inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
141 inline void SetAutoCreate(bool value) { m_autoCreateHasBeenSet = true; m_autoCreate = value; }
142 inline CreateApplicationRequest& WithAutoCreate(bool value) { SetAutoCreate(value); return *this;}
144
146
151 inline const GroupingType& GetGroupingType() const{ return m_groupingType; }
152 inline bool GroupingTypeHasBeenSet() const { return m_groupingTypeHasBeenSet; }
153 inline void SetGroupingType(const GroupingType& value) { m_groupingTypeHasBeenSet = true; m_groupingType = value; }
154 inline void SetGroupingType(GroupingType&& value) { m_groupingTypeHasBeenSet = true; m_groupingType = std::move(value); }
155 inline CreateApplicationRequest& WithGroupingType(const GroupingType& value) { SetGroupingType(value); return *this;}
156 inline CreateApplicationRequest& WithGroupingType(GroupingType&& value) { SetGroupingType(std::move(value)); return *this;}
158
160
164 inline bool GetAttachMissingPermission() const{ return m_attachMissingPermission; }
165 inline bool AttachMissingPermissionHasBeenSet() const { return m_attachMissingPermissionHasBeenSet; }
166 inline void SetAttachMissingPermission(bool value) { m_attachMissingPermissionHasBeenSet = true; m_attachMissingPermission = value; }
169 private:
170
171 Aws::String m_resourceGroupName;
172 bool m_resourceGroupNameHasBeenSet = false;
173
174 bool m_opsCenterEnabled;
175 bool m_opsCenterEnabledHasBeenSet = false;
176
177 bool m_cWEMonitorEnabled;
178 bool m_cWEMonitorEnabledHasBeenSet = false;
179
180 Aws::String m_opsItemSNSTopicArn;
181 bool m_opsItemSNSTopicArnHasBeenSet = false;
182
183 Aws::String m_sNSNotificationArn;
184 bool m_sNSNotificationArnHasBeenSet = false;
185
186 Aws::Vector<Tag> m_tags;
187 bool m_tagsHasBeenSet = false;
188
189 bool m_autoConfigEnabled;
190 bool m_autoConfigEnabledHasBeenSet = false;
191
192 bool m_autoCreate;
193 bool m_autoCreateHasBeenSet = false;
194
195 GroupingType m_groupingType;
196 bool m_groupingTypeHasBeenSet = false;
197
198 bool m_attachMissingPermission;
199 bool m_attachMissingPermissionHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace ApplicationInsights
204} // namespace Aws
CreateApplicationRequest & WithOpsItemSNSTopicArn(const char *value)
CreateApplicationRequest & WithSNSNotificationArn(const Aws::String &value)
CreateApplicationRequest & WithSNSNotificationArn(Aws::String &&value)
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateApplicationRequest & WithOpsItemSNSTopicArn(const Aws::String &value)
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & WithResourceGroupName(Aws::String &&value)
CreateApplicationRequest & WithOpsItemSNSTopicArn(Aws::String &&value)
CreateApplicationRequest & WithSNSNotificationArn(const char *value)
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithGroupingType(const GroupingType &value)
CreateApplicationRequest & WithResourceGroupName(const char *value)
CreateApplicationRequest & WithResourceGroupName(const Aws::String &value)
CreateApplicationRequest & WithGroupingType(GroupingType &&value)
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &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