AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 AppAssessmentScheduleType GetAssessmentSchedule() const { return m_assessmentSchedule; }
46 inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; }
47 inline void SetAssessmentSchedule(AppAssessmentScheduleType value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = value; }
50
52
59 inline const Aws::String& GetAwsApplicationArn() const { return m_awsApplicationArn; }
60 inline bool AwsApplicationArnHasBeenSet() const { return m_awsApplicationArnHasBeenSet; }
61 template<typename AwsApplicationArnT = Aws::String>
62 void SetAwsApplicationArn(AwsApplicationArnT&& value) { m_awsApplicationArnHasBeenSet = true; m_awsApplicationArn = std::forward<AwsApplicationArnT>(value); }
63 template<typename AwsApplicationArnT = Aws::String>
64 CreateAppRequest& WithAwsApplicationArn(AwsApplicationArnT&& value) { SetAwsApplicationArn(std::forward<AwsApplicationArnT>(value)); return *this;}
66
68
73 inline const Aws::String& GetClientToken() const { return m_clientToken; }
74 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
75 template<typename ClientTokenT = Aws::String>
76 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
77 template<typename ClientTokenT = Aws::String>
78 CreateAppRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 CreateAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
99 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const { return m_eventSubscriptions; }
100 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
101 template<typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
102 void SetEventSubscriptions(EventSubscriptionsT&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = std::forward<EventSubscriptionsT>(value); }
103 template<typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
104 CreateAppRequest& WithEventSubscriptions(EventSubscriptionsT&& value) { SetEventSubscriptions(std::forward<EventSubscriptionsT>(value)); return *this;}
105 template<typename EventSubscriptionsT = EventSubscription>
106 CreateAppRequest& AddEventSubscriptions(EventSubscriptionsT&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value)); return *this; }
108
110
113 inline const Aws::String& GetName() const { return m_name; }
114 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
115 template<typename NameT = Aws::String>
116 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
117 template<typename NameT = Aws::String>
118 CreateAppRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
120
122
127 inline const PermissionModel& GetPermissionModel() const { return m_permissionModel; }
128 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
129 template<typename PermissionModelT = PermissionModel>
130 void SetPermissionModel(PermissionModelT&& value) { m_permissionModelHasBeenSet = true; m_permissionModel = std::forward<PermissionModelT>(value); }
131 template<typename PermissionModelT = PermissionModel>
132 CreateAppRequest& WithPermissionModel(PermissionModelT&& value) { SetPermissionModel(std::forward<PermissionModelT>(value)); return *this;}
134
136
145 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
146 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
147 template<typename PolicyArnT = Aws::String>
148 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
149 template<typename PolicyArnT = Aws::String>
150 CreateAppRequest& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
152
154
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
162 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 CreateAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
164 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateAppRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
167 }
169 private:
170
172 bool m_assessmentScheduleHasBeenSet = false;
173
174 Aws::String m_awsApplicationArn;
175 bool m_awsApplicationArnHasBeenSet = false;
176
178 bool m_clientTokenHasBeenSet = true;
179
180 Aws::String m_description;
181 bool m_descriptionHasBeenSet = false;
182
183 Aws::Vector<EventSubscription> m_eventSubscriptions;
184 bool m_eventSubscriptionsHasBeenSet = false;
185
186 Aws::String m_name;
187 bool m_nameHasBeenSet = false;
188
189 PermissionModel m_permissionModel;
190 bool m_permissionModelHasBeenSet = false;
191
192 Aws::String m_policyArn;
193 bool m_policyArnHasBeenSet = false;
194
196 bool m_tagsHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace ResilienceHub
201} // 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