AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAppRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/resiliencehub/model/AppAssessmentScheduleType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/resiliencehub/model/PermissionModel.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/resiliencehub/model/EventSubscription.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace ResilienceHub
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_RESILIENCEHUB_API CreateAppRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApp"; }
37
38 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
39
40
42
45 inline const AppAssessmentScheduleType& GetAssessmentSchedule() const{ return m_assessmentSchedule; }
46 inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; }
47 inline void SetAssessmentSchedule(const AppAssessmentScheduleType& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = value; }
48 inline void SetAssessmentSchedule(AppAssessmentScheduleType&& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = std::move(value); }
52
54
61 inline const Aws::String& GetAwsApplicationArn() const{ return m_awsApplicationArn; }
62 inline bool AwsApplicationArnHasBeenSet() const { return m_awsApplicationArnHasBeenSet; }
63 inline void SetAwsApplicationArn(const Aws::String& value) { m_awsApplicationArnHasBeenSet = true; m_awsApplicationArn = value; }
64 inline void SetAwsApplicationArn(Aws::String&& value) { m_awsApplicationArnHasBeenSet = true; m_awsApplicationArn = std::move(value); }
65 inline void SetAwsApplicationArn(const char* value) { m_awsApplicationArnHasBeenSet = true; m_awsApplicationArn.assign(value); }
66 inline CreateAppRequest& WithAwsApplicationArn(const Aws::String& value) { SetAwsApplicationArn(value); return *this;}
67 inline CreateAppRequest& WithAwsApplicationArn(Aws::String&& value) { SetAwsApplicationArn(std::move(value)); return *this;}
68 inline CreateAppRequest& WithAwsApplicationArn(const char* value) { SetAwsApplicationArn(value); return *this;}
70
72
77 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
80 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
81 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
82 inline CreateAppRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
83 inline CreateAppRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
84 inline CreateAppRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline CreateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline CreateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline CreateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
107 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const{ return m_eventSubscriptions; }
108 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
109 inline void SetEventSubscriptions(const Aws::Vector<EventSubscription>& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = value; }
110 inline void SetEventSubscriptions(Aws::Vector<EventSubscription>&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = std::move(value); }
113 inline CreateAppRequest& AddEventSubscriptions(const EventSubscription& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(value); return *this; }
114 inline CreateAppRequest& AddEventSubscriptions(EventSubscription&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(std::move(value)); return *this; }
116
118
121 inline const Aws::String& GetName() const{ return m_name; }
122 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
124 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
125 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
126 inline CreateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
127 inline CreateAppRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
128 inline CreateAppRequest& WithName(const char* value) { SetName(value); return *this;}
130
132
137 inline const PermissionModel& GetPermissionModel() const{ return m_permissionModel; }
138 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
139 inline void SetPermissionModel(const PermissionModel& value) { m_permissionModelHasBeenSet = true; m_permissionModel = value; }
140 inline void SetPermissionModel(PermissionModel&& value) { m_permissionModelHasBeenSet = true; m_permissionModel = std::move(value); }
141 inline CreateAppRequest& WithPermissionModel(const PermissionModel& value) { SetPermissionModel(value); return *this;}
142 inline CreateAppRequest& WithPermissionModel(PermissionModel&& value) { SetPermissionModel(std::move(value)); return *this;}
144
146
155 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
156 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
157 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
158 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
159 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
160 inline CreateAppRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
161 inline CreateAppRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
162 inline CreateAppRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
164
166
170 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
173 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 inline CreateAppRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
175 inline CreateAppRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
176 inline CreateAppRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
177 inline CreateAppRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
178 inline CreateAppRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
179 inline CreateAppRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
180 inline CreateAppRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
181 inline CreateAppRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
182 inline CreateAppRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
184 private:
185
186 AppAssessmentScheduleType m_assessmentSchedule;
187 bool m_assessmentScheduleHasBeenSet = false;
188
189 Aws::String m_awsApplicationArn;
190 bool m_awsApplicationArnHasBeenSet = false;
191
192 Aws::String m_clientToken;
193 bool m_clientTokenHasBeenSet = false;
194
195 Aws::String m_description;
196 bool m_descriptionHasBeenSet = false;
197
198 Aws::Vector<EventSubscription> m_eventSubscriptions;
199 bool m_eventSubscriptionsHasBeenSet = false;
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
204 PermissionModel m_permissionModel;
205 bool m_permissionModelHasBeenSet = false;
206
207 Aws::String m_policyArn;
208 bool m_policyArnHasBeenSet = false;
209
211 bool m_tagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace ResilienceHub
216} // namespace Aws
CreateAppRequest & WithName(const Aws::String &value)
const Aws::String & GetAwsApplicationArn() const
CreateAppRequest & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
CreateAppRequest & WithDescription(const Aws::String &value)
CreateAppRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetEventSubscriptions(Aws::Vector< EventSubscription > &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
const AppAssessmentScheduleType & GetAssessmentSchedule() const
CreateAppRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAppRequest & WithPolicyArn(Aws::String &&value)
CreateAppRequest & WithEventSubscriptions(const Aws::Vector< EventSubscription > &value)
CreateAppRequest & AddTags(Aws::String &&key, const char *value)
CreateAppRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetClientToken(const Aws::String &value)
void SetPermissionModel(PermissionModel &&value)
CreateAppRequest & AddTags(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppRequest & WithName(const char *value)
CreateAppRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAppRequest & WithClientToken(const Aws::String &value)
CreateAppRequest & AddTags(const char *key, Aws::String &&value)
CreateAppRequest & WithPermissionModel(PermissionModel &&value)
CreateAppRequest & WithPolicyArn(const char *value)
CreateAppRequest & WithName(Aws::String &&value)
CreateAppRequest & WithPermissionModel(const PermissionModel &value)
void SetAwsApplicationArn(const Aws::String &value)
void SetEventSubscriptions(const Aws::Vector< EventSubscription > &value)
void SetAssessmentSchedule(const AppAssessmentScheduleType &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
CreateAppRequest & WithAssessmentSchedule(const AppAssessmentScheduleType &value)
CreateAppRequest & WithClientToken(Aws::String &&value)
void SetPermissionModel(const PermissionModel &value)
void SetPolicyArn(const Aws::String &value)
CreateAppRequest & WithAwsApplicationArn(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAppRequest & WithEventSubscriptions(Aws::Vector< EventSubscription > &&value)
const PermissionModel & GetPermissionModel() const
CreateAppRequest & WithAssessmentSchedule(AppAssessmentScheduleType &&value)
CreateAppRequest & WithClientToken(const char *value)
CreateAppRequest & WithAwsApplicationArn(const char *value)
CreateAppRequest & WithPolicyArn(const Aws::String &value)
CreateAppRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAppRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAssessmentSchedule(AppAssessmentScheduleType &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAppRequest & WithDescription(const char *value)
CreateAppRequest & WithAwsApplicationArn(const Aws::String &value)
CreateAppRequest & AddEventSubscriptions(EventSubscription &&value)
CreateAppRequest & AddEventSubscriptions(const EventSubscription &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector