AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateAppRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehub/ResilienceHubRequest.h>
12#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
13#include <aws/resiliencehub/model/AppAssessmentScheduleType.h>
14#include <aws/resiliencehub/model/EventSubscription.h>
15#include <aws/resiliencehub/model/PermissionModel.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ResilienceHub {
21namespace Model {
22
26 public:
27 AWS_RESILIENCEHUB_API CreateAppRequest() = 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 "CreateApp"; }
34
35 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
36
38
41 inline AppAssessmentScheduleType GetAssessmentSchedule() const { return m_assessmentSchedule; }
42 inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; }
44 m_assessmentScheduleHasBeenSet = true;
45 m_assessmentSchedule = value;
46 }
49 return *this;
50 }
52
54
61 inline const Aws::String& GetAwsApplicationArn() const { return m_awsApplicationArn; }
62 inline bool AwsApplicationArnHasBeenSet() const { return m_awsApplicationArnHasBeenSet; }
63 template <typename AwsApplicationArnT = Aws::String>
64 void SetAwsApplicationArn(AwsApplicationArnT&& value) {
65 m_awsApplicationArnHasBeenSet = true;
66 m_awsApplicationArn = std::forward<AwsApplicationArnT>(value);
67 }
68 template <typename AwsApplicationArnT = Aws::String>
69 CreateAppRequest& WithAwsApplicationArn(AwsApplicationArnT&& value) {
70 SetAwsApplicationArn(std::forward<AwsApplicationArnT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetClientToken() const { return m_clientToken; }
82 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
83 template <typename ClientTokenT = Aws::String>
84 void SetClientToken(ClientTokenT&& value) {
85 m_clientTokenHasBeenSet = true;
86 m_clientToken = std::forward<ClientTokenT>(value);
87 }
88 template <typename ClientTokenT = Aws::String>
89 CreateAppRequest& WithClientToken(ClientTokenT&& value) {
90 SetClientToken(std::forward<ClientTokenT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 CreateAppRequest& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const { return m_eventSubscriptions; }
120 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
121 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
122 void SetEventSubscriptions(EventSubscriptionsT&& value) {
123 m_eventSubscriptionsHasBeenSet = true;
124 m_eventSubscriptions = std::forward<EventSubscriptionsT>(value);
125 }
126 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
127 CreateAppRequest& WithEventSubscriptions(EventSubscriptionsT&& value) {
128 SetEventSubscriptions(std::forward<EventSubscriptionsT>(value));
129 return *this;
130 }
131 template <typename EventSubscriptionsT = EventSubscription>
132 CreateAppRequest& AddEventSubscriptions(EventSubscriptionsT&& value) {
133 m_eventSubscriptionsHasBeenSet = true;
134 m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetName() const { return m_name; }
144 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
145 template <typename NameT = Aws::String>
146 void SetName(NameT&& value) {
147 m_nameHasBeenSet = true;
148 m_name = std::forward<NameT>(value);
149 }
150 template <typename NameT = Aws::String>
151 CreateAppRequest& WithName(NameT&& value) {
152 SetName(std::forward<NameT>(value));
153 return *this;
154 }
156
158
163 inline const PermissionModel& GetPermissionModel() const { return m_permissionModel; }
164 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
165 template <typename PermissionModelT = PermissionModel>
166 void SetPermissionModel(PermissionModelT&& value) {
167 m_permissionModelHasBeenSet = true;
168 m_permissionModel = std::forward<PermissionModelT>(value);
169 }
170 template <typename PermissionModelT = PermissionModel>
171 CreateAppRequest& WithPermissionModel(PermissionModelT&& value) {
172 SetPermissionModel(std::forward<PermissionModelT>(value));
173 return *this;
174 }
176
178
187 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
188 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
189 template <typename PolicyArnT = Aws::String>
190 void SetPolicyArn(PolicyArnT&& value) {
191 m_policyArnHasBeenSet = true;
192 m_policyArn = std::forward<PolicyArnT>(value);
193 }
194 template <typename PolicyArnT = Aws::String>
195 CreateAppRequest& WithPolicyArn(PolicyArnT&& value) {
196 SetPolicyArn(std::forward<PolicyArnT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 void SetTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags = std::forward<TagsT>(value);
212 }
213 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
214 CreateAppRequest& WithTags(TagsT&& value) {
215 SetTags(std::forward<TagsT>(value));
216 return *this;
217 }
218 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
219 CreateAppRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
222 return *this;
223 }
225 private:
227
228 Aws::String m_awsApplicationArn;
229
231
232 Aws::String m_description;
233
234 Aws::Vector<EventSubscription> m_eventSubscriptions;
235
236 Aws::String m_name;
237
238 PermissionModel m_permissionModel;
239
240 Aws::String m_policyArn;
241
243 bool m_assessmentScheduleHasBeenSet = false;
244 bool m_awsApplicationArnHasBeenSet = false;
245 bool m_clientTokenHasBeenSet = true;
246 bool m_descriptionHasBeenSet = false;
247 bool m_eventSubscriptionsHasBeenSet = false;
248 bool m_nameHasBeenSet = false;
249 bool m_permissionModelHasBeenSet = false;
250 bool m_policyArnHasBeenSet = false;
251 bool m_tagsHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace ResilienceHub
256} // namespace Aws
const Aws::String & GetAwsApplicationArn() const
CreateAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
AppAssessmentScheduleType GetAssessmentSchedule() const
CreateAppRequest & WithName(NameT &&value)
CreateAppRequest & WithAssessmentSchedule(AppAssessmentScheduleType value)
CreateAppRequest & AddEventSubscriptions(EventSubscriptionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetAssessmentSchedule(AppAssessmentScheduleType value)
CreateAppRequest & WithDescription(DescriptionT &&value)
CreateAppRequest & WithPermissionModel(PermissionModelT &&value)
CreateAppRequest & WithEventSubscriptions(EventSubscriptionsT &&value)
virtual const char * GetServiceRequestName() const override
void SetPermissionModel(PermissionModelT &&value)
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
CreateAppRequest & WithAwsApplicationArn(AwsApplicationArnT &&value)
CreateAppRequest & WithTags(TagsT &&value)
const PermissionModel & GetPermissionModel() const
CreateAppRequest & WithClientToken(ClientTokenT &&value)
CreateAppRequest & WithPolicyArn(PolicyArnT &&value)
void SetEventSubscriptions(EventSubscriptionsT &&value)
AWS_RESILIENCEHUB_API CreateAppRequest()=default
void SetAwsApplicationArn(AwsApplicationArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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