AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ResourceGroupNameT = Aws::String>
47 void SetResourceGroupName(ResourceGroupNameT&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::forward<ResourceGroupNameT>(value); }
48 template<typename ResourceGroupNameT = Aws::String>
49 CreateApplicationRequest& WithResourceGroupName(ResourceGroupNameT&& value) { SetResourceGroupName(std::forward<ResourceGroupNameT>(value)); return *this;}
51
53
57 inline bool GetOpsCenterEnabled() const { return m_opsCenterEnabled; }
58 inline bool OpsCenterEnabledHasBeenSet() const { return m_opsCenterEnabledHasBeenSet; }
59 inline void SetOpsCenterEnabled(bool value) { m_opsCenterEnabledHasBeenSet = true; m_opsCenterEnabled = value; }
60 inline CreateApplicationRequest& WithOpsCenterEnabled(bool value) { SetOpsCenterEnabled(value); return *this;}
62
64
69 inline bool GetCWEMonitorEnabled() const { return m_cWEMonitorEnabled; }
70 inline bool CWEMonitorEnabledHasBeenSet() const { return m_cWEMonitorEnabledHasBeenSet; }
71 inline void SetCWEMonitorEnabled(bool value) { m_cWEMonitorEnabledHasBeenSet = true; m_cWEMonitorEnabled = value; }
72 inline CreateApplicationRequest& WithCWEMonitorEnabled(bool value) { SetCWEMonitorEnabled(value); return *this;}
74
76
81 inline const Aws::String& GetOpsItemSNSTopicArn() const { return m_opsItemSNSTopicArn; }
82 inline bool OpsItemSNSTopicArnHasBeenSet() const { return m_opsItemSNSTopicArnHasBeenSet; }
83 template<typename OpsItemSNSTopicArnT = Aws::String>
84 void SetOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn = std::forward<OpsItemSNSTopicArnT>(value); }
85 template<typename OpsItemSNSTopicArnT = Aws::String>
86 CreateApplicationRequest& WithOpsItemSNSTopicArn(OpsItemSNSTopicArnT&& value) { SetOpsItemSNSTopicArn(std::forward<OpsItemSNSTopicArnT>(value)); return *this;}
88
90
93 inline const Aws::String& GetSNSNotificationArn() const { return m_sNSNotificationArn; }
94 inline bool SNSNotificationArnHasBeenSet() const { return m_sNSNotificationArnHasBeenSet; }
95 template<typename SNSNotificationArnT = Aws::String>
96 void SetSNSNotificationArn(SNSNotificationArnT&& value) { m_sNSNotificationArnHasBeenSet = true; m_sNSNotificationArn = std::forward<SNSNotificationArnT>(value); }
97 template<typename SNSNotificationArnT = Aws::String>
98 CreateApplicationRequest& WithSNSNotificationArn(SNSNotificationArnT&& value) { SetSNSNotificationArn(std::forward<SNSNotificationArnT>(value)); return *this;}
100
102
107 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template<typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Vector<Tag>>
112 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsT = Tag>
114 CreateApplicationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
116
118
122 inline bool GetAutoConfigEnabled() const { return m_autoConfigEnabled; }
123 inline bool AutoConfigEnabledHasBeenSet() const { return m_autoConfigEnabledHasBeenSet; }
124 inline void SetAutoConfigEnabled(bool value) { m_autoConfigEnabledHasBeenSet = true; m_autoConfigEnabled = value; }
125 inline CreateApplicationRequest& WithAutoConfigEnabled(bool value) { SetAutoConfigEnabled(value); return *this;}
127
129
133 inline bool GetAutoCreate() const { return m_autoCreate; }
134 inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
135 inline void SetAutoCreate(bool value) { m_autoCreateHasBeenSet = true; m_autoCreate = value; }
136 inline CreateApplicationRequest& WithAutoCreate(bool value) { SetAutoCreate(value); return *this;}
138
140
145 inline GroupingType GetGroupingType() const { return m_groupingType; }
146 inline bool GroupingTypeHasBeenSet() const { return m_groupingTypeHasBeenSet; }
147 inline void SetGroupingType(GroupingType value) { m_groupingTypeHasBeenSet = true; m_groupingType = value; }
150
152
156 inline bool GetAttachMissingPermission() const { return m_attachMissingPermission; }
157 inline bool AttachMissingPermissionHasBeenSet() const { return m_attachMissingPermissionHasBeenSet; }
158 inline void SetAttachMissingPermission(bool value) { m_attachMissingPermissionHasBeenSet = true; m_attachMissingPermission = value; }
161 private:
162
163 Aws::String m_resourceGroupName;
164 bool m_resourceGroupNameHasBeenSet = false;
165
166 bool m_opsCenterEnabled{false};
167 bool m_opsCenterEnabledHasBeenSet = false;
168
169 bool m_cWEMonitorEnabled{false};
170 bool m_cWEMonitorEnabledHasBeenSet = false;
171
172 Aws::String m_opsItemSNSTopicArn;
173 bool m_opsItemSNSTopicArnHasBeenSet = false;
174
175 Aws::String m_sNSNotificationArn;
176 bool m_sNSNotificationArnHasBeenSet = false;
177
178 Aws::Vector<Tag> m_tags;
179 bool m_tagsHasBeenSet = false;
180
181 bool m_autoConfigEnabled{false};
182 bool m_autoConfigEnabledHasBeenSet = false;
183
184 bool m_autoCreate{false};
185 bool m_autoCreateHasBeenSet = false;
186
187 GroupingType m_groupingType{GroupingType::NOT_SET};
188 bool m_groupingTypeHasBeenSet = false;
189
190 bool m_attachMissingPermission{false};
191 bool m_attachMissingPermissionHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace ApplicationInsights
196} // 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