AWS SDK for C++  1.9.129
AWS SDK for C++
CreateApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ApplicationInsights
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; }
43 
47  inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
48 
52  inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; }
53 
57  inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); }
58 
62  inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); }
63 
67  inline CreateApplicationRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
68 
72  inline CreateApplicationRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
73 
77  inline CreateApplicationRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;}
78 
79 
84  inline bool GetOpsCenterEnabled() const{ return m_opsCenterEnabled; }
85 
90  inline bool OpsCenterEnabledHasBeenSet() const { return m_opsCenterEnabledHasBeenSet; }
91 
96  inline void SetOpsCenterEnabled(bool value) { m_opsCenterEnabledHasBeenSet = true; m_opsCenterEnabled = value; }
97 
102  inline CreateApplicationRequest& WithOpsCenterEnabled(bool value) { SetOpsCenterEnabled(value); return *this;}
103 
104 
110  inline bool GetCWEMonitorEnabled() const{ return m_cWEMonitorEnabled; }
111 
117  inline bool CWEMonitorEnabledHasBeenSet() const { return m_cWEMonitorEnabledHasBeenSet; }
118 
124  inline void SetCWEMonitorEnabled(bool value) { m_cWEMonitorEnabledHasBeenSet = true; m_cWEMonitorEnabled = value; }
125 
131  inline CreateApplicationRequest& WithCWEMonitorEnabled(bool value) { SetCWEMonitorEnabled(value); return *this;}
132 
133 
139  inline const Aws::String& GetOpsItemSNSTopicArn() const{ return m_opsItemSNSTopicArn; }
140 
146  inline bool OpsItemSNSTopicArnHasBeenSet() const { return m_opsItemSNSTopicArnHasBeenSet; }
147 
153  inline void SetOpsItemSNSTopicArn(const Aws::String& value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn = value; }
154 
160  inline void SetOpsItemSNSTopicArn(Aws::String&& value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn = std::move(value); }
161 
167  inline void SetOpsItemSNSTopicArn(const char* value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn.assign(value); }
168 
174  inline CreateApplicationRequest& WithOpsItemSNSTopicArn(const Aws::String& value) { SetOpsItemSNSTopicArn(value); return *this;}
175 
181  inline CreateApplicationRequest& WithOpsItemSNSTopicArn(Aws::String&& value) { SetOpsItemSNSTopicArn(std::move(value)); return *this;}
182 
188  inline CreateApplicationRequest& WithOpsItemSNSTopicArn(const char* value) { SetOpsItemSNSTopicArn(value); return *this;}
189 
190 
196  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
197 
203  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 
210  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
211 
217  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
218 
224  inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
225 
231  inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
232 
238  inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
239 
245  inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
246 
247  private:
248 
249  Aws::String m_resourceGroupName;
250  bool m_resourceGroupNameHasBeenSet;
251 
252  bool m_opsCenterEnabled;
253  bool m_opsCenterEnabledHasBeenSet;
254 
255  bool m_cWEMonitorEnabled;
256  bool m_cWEMonitorEnabledHasBeenSet;
257 
258  Aws::String m_opsItemSNSTopicArn;
259  bool m_opsItemSNSTopicArnHasBeenSet;
260 
261  Aws::Vector<Tag> m_tags;
262  bool m_tagsHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace ApplicationInsights
267 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateApplicationRequest.h:231
Aws::ApplicationInsights::Model::CreateApplicationRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateApplicationRequest.h:196
Tag.h
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetOpsItemSNSTopicArn
void SetOpsItemSNSTopicArn(const char *value)
Definition: CreateApplicationRequest.h:167
Aws::ApplicationInsights::Model::CreateApplicationRequest::GetResourceGroupName
const Aws::String & GetResourceGroupName() const
Definition: CreateApplicationRequest.h:42
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ApplicationInsights::Model::CreateApplicationRequest::OpsItemSNSTopicArnHasBeenSet
bool OpsItemSNSTopicArnHasBeenSet() const
Definition: CreateApplicationRequest.h:146
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithCWEMonitorEnabled
CreateApplicationRequest & WithCWEMonitorEnabled(bool value)
Definition: CreateApplicationRequest.h:131
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithResourceGroupName
CreateApplicationRequest & WithResourceGroupName(Aws::String &&value)
Definition: CreateApplicationRequest.h:72
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithTags
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateApplicationRequest.h:224
AWSVector.h
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateApplicationRequest.h:210
Aws::ApplicationInsights::Model::CreateApplicationRequest::CreateApplicationRequest
CreateApplicationRequest()
Aws::ApplicationInsights::ApplicationInsightsRequest
Definition: ApplicationInsightsRequest.h:17
Aws::ApplicationInsights::Model::CreateApplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetOpsCenterEnabled
void SetOpsCenterEnabled(bool value)
Definition: CreateApplicationRequest.h:96
Aws::ApplicationInsights::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(const Tag &value)
Definition: CreateApplicationRequest.h:238
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetOpsItemSNSTopicArn
void SetOpsItemSNSTopicArn(Aws::String &&value)
Definition: CreateApplicationRequest.h:160
AWS_APPLICATIONINSIGHTS_API
#define AWS_APPLICATIONINSIGHTS_API
Definition: ApplicationInsights_EXPORTS.h:28
ApplicationInsightsRequest.h
Aws::ApplicationInsights::Model::CreateApplicationRequest::OpsCenterEnabledHasBeenSet
bool OpsCenterEnabledHasBeenSet() const
Definition: CreateApplicationRequest.h:90
Aws::ApplicationInsights::Model::CreateApplicationRequest::ResourceGroupNameHasBeenSet
bool ResourceGroupNameHasBeenSet() const
Definition: CreateApplicationRequest.h:47
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateApplicationRequest.h:217
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetResourceGroupName
void SetResourceGroupName(const char *value)
Definition: CreateApplicationRequest.h:62
AWSString.h
Aws::ApplicationInsights::Model::CreateApplicationRequest::GetCWEMonitorEnabled
bool GetCWEMonitorEnabled() const
Definition: CreateApplicationRequest.h:110
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithOpsCenterEnabled
CreateApplicationRequest & WithOpsCenterEnabled(bool value)
Definition: CreateApplicationRequest.h:102
Aws::ApplicationInsights::Model::CreateApplicationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateApplicationRequest.h:203
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetCWEMonitorEnabled
void SetCWEMonitorEnabled(bool value)
Definition: CreateApplicationRequest.h:124
Aws::ApplicationInsights::Model::CreateApplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApplicationRequest.h:32
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithResourceGroupName
CreateApplicationRequest & WithResourceGroupName(const Aws::String &value)
Definition: CreateApplicationRequest.h:67
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetOpsItemSNSTopicArn
void SetOpsItemSNSTopicArn(const Aws::String &value)
Definition: CreateApplicationRequest.h:153
Aws::ApplicationInsights::Model::CreateApplicationRequest::AddTags
CreateApplicationRequest & AddTags(Tag &&value)
Definition: CreateApplicationRequest.h:245
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithOpsItemSNSTopicArn
CreateApplicationRequest & WithOpsItemSNSTopicArn(const Aws::String &value)
Definition: CreateApplicationRequest.h:174
Aws::ApplicationInsights::Model::Tag
Definition: Tag.h:47
Aws::ApplicationInsights::Model::CreateApplicationRequest::GetOpsCenterEnabled
bool GetOpsCenterEnabled() const
Definition: CreateApplicationRequest.h:84
Aws::ApplicationInsights::Model::CreateApplicationRequest::CWEMonitorEnabledHasBeenSet
bool CWEMonitorEnabledHasBeenSet() const
Definition: CreateApplicationRequest.h:117
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithResourceGroupName
CreateApplicationRequest & WithResourceGroupName(const char *value)
Definition: CreateApplicationRequest.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetResourceGroupName
void SetResourceGroupName(Aws::String &&value)
Definition: CreateApplicationRequest.h:57
ApplicationInsights_EXPORTS.h
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithOpsItemSNSTopicArn
CreateApplicationRequest & WithOpsItemSNSTopicArn(const char *value)
Definition: CreateApplicationRequest.h:188
Aws::ApplicationInsights::Model::CreateApplicationRequest::SetResourceGroupName
void SetResourceGroupName(const Aws::String &value)
Definition: CreateApplicationRequest.h:52
Aws::ApplicationInsights::Model::CreateApplicationRequest::WithOpsItemSNSTopicArn
CreateApplicationRequest & WithOpsItemSNSTopicArn(Aws::String &&value)
Definition: CreateApplicationRequest.h:181
Aws::ApplicationInsights::Model::CreateApplicationRequest
Definition: CreateApplicationRequest.h:24
Aws::ApplicationInsights::Model::CreateApplicationRequest::GetOpsItemSNSTopicArn
const Aws::String & GetOpsItemSNSTopicArn() const
Definition: CreateApplicationRequest.h:139
Aws::ApplicationInsights::Model::CreateApplicationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override