AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdateAppRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehub/ResilienceHubRequest.h>
10#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
11#include <aws/resiliencehub/model/AppAssessmentScheduleType.h>
12#include <aws/resiliencehub/model/EventSubscription.h>
13#include <aws/resiliencehub/model/PermissionModel.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ResilienceHub {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUB_API UpdateAppRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateApp"; }
32
33 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
34
36
45 inline const Aws::String& GetAppArn() const { return m_appArn; }
46 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
47 template <typename AppArnT = Aws::String>
48 void SetAppArn(AppArnT&& value) {
49 m_appArnHasBeenSet = true;
50 m_appArn = std::forward<AppArnT>(value);
51 }
52 template <typename AppArnT = Aws::String>
53 UpdateAppRequest& WithAppArn(AppArnT&& value) {
54 SetAppArn(std::forward<AppArnT>(value));
55 return *this;
56 }
58
60
63 inline AppAssessmentScheduleType GetAssessmentSchedule() const { return m_assessmentSchedule; }
64 inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; }
66 m_assessmentScheduleHasBeenSet = true;
67 m_assessmentSchedule = value;
68 }
71 return *this;
72 }
74
76
79 inline bool GetClearResiliencyPolicyArn() const { return m_clearResiliencyPolicyArn; }
80 inline bool ClearResiliencyPolicyArnHasBeenSet() const { return m_clearResiliencyPolicyArnHasBeenSet; }
81 inline void SetClearResiliencyPolicyArn(bool value) {
82 m_clearResiliencyPolicyArnHasBeenSet = true;
83 m_clearResiliencyPolicyArn = value;
84 }
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 UpdateAppRequest& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const { return m_eventSubscriptions; }
116 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
117 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
118 void SetEventSubscriptions(EventSubscriptionsT&& value) {
119 m_eventSubscriptionsHasBeenSet = true;
120 m_eventSubscriptions = std::forward<EventSubscriptionsT>(value);
121 }
122 template <typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
123 UpdateAppRequest& WithEventSubscriptions(EventSubscriptionsT&& value) {
124 SetEventSubscriptions(std::forward<EventSubscriptionsT>(value));
125 return *this;
126 }
127 template <typename EventSubscriptionsT = EventSubscription>
128 UpdateAppRequest& AddEventSubscriptions(EventSubscriptionsT&& value) {
129 m_eventSubscriptionsHasBeenSet = true;
130 m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value));
131 return *this;
132 }
134
136
140 inline const PermissionModel& GetPermissionModel() const { return m_permissionModel; }
141 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
142 template <typename PermissionModelT = PermissionModel>
143 void SetPermissionModel(PermissionModelT&& value) {
144 m_permissionModelHasBeenSet = true;
145 m_permissionModel = std::forward<PermissionModelT>(value);
146 }
147 template <typename PermissionModelT = PermissionModel>
148 UpdateAppRequest& WithPermissionModel(PermissionModelT&& value) {
149 SetPermissionModel(std::forward<PermissionModelT>(value));
150 return *this;
151 }
153
155
164 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
165 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
166 template <typename PolicyArnT = Aws::String>
167 void SetPolicyArn(PolicyArnT&& value) {
168 m_policyArnHasBeenSet = true;
169 m_policyArn = std::forward<PolicyArnT>(value);
170 }
171 template <typename PolicyArnT = Aws::String>
172 UpdateAppRequest& WithPolicyArn(PolicyArnT&& value) {
173 SetPolicyArn(std::forward<PolicyArnT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_appArn;
179
181
182 bool m_clearResiliencyPolicyArn{false};
183
184 Aws::String m_description;
185
186 Aws::Vector<EventSubscription> m_eventSubscriptions;
187
188 PermissionModel m_permissionModel;
189
190 Aws::String m_policyArn;
191 bool m_appArnHasBeenSet = false;
192 bool m_assessmentScheduleHasBeenSet = false;
193 bool m_clearResiliencyPolicyArnHasBeenSet = false;
194 bool m_descriptionHasBeenSet = false;
195 bool m_eventSubscriptionsHasBeenSet = false;
196 bool m_permissionModelHasBeenSet = false;
197 bool m_policyArnHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace ResilienceHub
202} // namespace Aws
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
AppAssessmentScheduleType GetAssessmentSchedule() const
UpdateAppRequest & WithAssessmentSchedule(AppAssessmentScheduleType value)
UpdateAppRequest & WithClearResiliencyPolicyArn(bool value)
void SetEventSubscriptions(EventSubscriptionsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RESILIENCEHUB_API UpdateAppRequest()=default
UpdateAppRequest & WithPolicyArn(PolicyArnT &&value)
void SetPermissionModel(PermissionModelT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
UpdateAppRequest & WithEventSubscriptions(EventSubscriptionsT &&value)
UpdateAppRequest & WithPermissionModel(PermissionModelT &&value)
UpdateAppRequest & WithAppArn(AppArnT &&value)
UpdateAppRequest & AddEventSubscriptions(EventSubscriptionsT &&value)
UpdateAppRequest & WithDescription(DescriptionT &&value)
void SetAssessmentSchedule(AppAssessmentScheduleType value)
const PermissionModel & GetPermissionModel() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector