AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAppRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehub/model/AppAssessmentScheduleType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/resiliencehub/model/PermissionModel.h>
13#include <aws/resiliencehub/model/EventSubscription.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ResilienceHub
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RESILIENCEHUB_API UpdateAppRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateApp"; }
35
36 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
37
38
40
49 inline const Aws::String& GetAppArn() const{ return m_appArn; }
50 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
51 inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; }
52 inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); }
53 inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); }
54 inline UpdateAppRequest& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;}
55 inline UpdateAppRequest& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;}
56 inline UpdateAppRequest& WithAppArn(const char* value) { SetAppArn(value); return *this;}
58
60
63 inline const AppAssessmentScheduleType& GetAssessmentSchedule() const{ return m_assessmentSchedule; }
64 inline bool AssessmentScheduleHasBeenSet() const { return m_assessmentScheduleHasBeenSet; }
65 inline void SetAssessmentSchedule(const AppAssessmentScheduleType& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = value; }
66 inline void SetAssessmentSchedule(AppAssessmentScheduleType&& value) { m_assessmentScheduleHasBeenSet = true; m_assessmentSchedule = std::move(value); }
70
72
75 inline bool GetClearResiliencyPolicyArn() const{ return m_clearResiliencyPolicyArn; }
76 inline bool ClearResiliencyPolicyArnHasBeenSet() const { return m_clearResiliencyPolicyArnHasBeenSet; }
77 inline void SetClearResiliencyPolicyArn(bool value) { m_clearResiliencyPolicyArnHasBeenSet = true; m_clearResiliencyPolicyArn = value; }
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline UpdateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline UpdateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline UpdateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
101 inline const Aws::Vector<EventSubscription>& GetEventSubscriptions() const{ return m_eventSubscriptions; }
102 inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; }
103 inline void SetEventSubscriptions(const Aws::Vector<EventSubscription>& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = value; }
104 inline void SetEventSubscriptions(Aws::Vector<EventSubscription>&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = std::move(value); }
107 inline UpdateAppRequest& AddEventSubscriptions(const EventSubscription& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(value); return *this; }
108 inline UpdateAppRequest& AddEventSubscriptions(EventSubscription&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(std::move(value)); return *this; }
110
112
116 inline const PermissionModel& GetPermissionModel() const{ return m_permissionModel; }
117 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
118 inline void SetPermissionModel(const PermissionModel& value) { m_permissionModelHasBeenSet = true; m_permissionModel = value; }
119 inline void SetPermissionModel(PermissionModel&& value) { m_permissionModelHasBeenSet = true; m_permissionModel = std::move(value); }
120 inline UpdateAppRequest& WithPermissionModel(const PermissionModel& value) { SetPermissionModel(value); return *this;}
121 inline UpdateAppRequest& WithPermissionModel(PermissionModel&& value) { SetPermissionModel(std::move(value)); return *this;}
123
125
134 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
135 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
136 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
137 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
138 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
139 inline UpdateAppRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
140 inline UpdateAppRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
141 inline UpdateAppRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
143 private:
144
145 Aws::String m_appArn;
146 bool m_appArnHasBeenSet = false;
147
148 AppAssessmentScheduleType m_assessmentSchedule;
149 bool m_assessmentScheduleHasBeenSet = false;
150
151 bool m_clearResiliencyPolicyArn;
152 bool m_clearResiliencyPolicyArnHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 Aws::Vector<EventSubscription> m_eventSubscriptions;
158 bool m_eventSubscriptionsHasBeenSet = false;
159
160 PermissionModel m_permissionModel;
161 bool m_permissionModelHasBeenSet = false;
162
163 Aws::String m_policyArn;
164 bool m_policyArnHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace ResilienceHub
169} // namespace Aws
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
void SetPermissionModel(const PermissionModel &value)
UpdateAppRequest & WithPermissionModel(const PermissionModel &value)
void SetAssessmentSchedule(const AppAssessmentScheduleType &value)
void SetPolicyArn(const Aws::String &value)
UpdateAppRequest & WithClearResiliencyPolicyArn(bool value)
UpdateAppRequest & AddEventSubscriptions(const EventSubscription &value)
UpdateAppRequest & WithPermissionModel(PermissionModel &&value)
virtual const char * GetServiceRequestName() const override
void SetPermissionModel(PermissionModel &&value)
void SetDescription(const Aws::String &value)
UpdateAppRequest & WithAppArn(const char *value)
UpdateAppRequest & WithAppArn(Aws::String &&value)
void SetAppArn(const Aws::String &value)
void SetEventSubscriptions(Aws::Vector< EventSubscription > &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
const AppAssessmentScheduleType & GetAssessmentSchedule() const
UpdateAppRequest & AddEventSubscriptions(EventSubscription &&value)
UpdateAppRequest & WithDescription(const Aws::String &value)
UpdateAppRequest & WithEventSubscriptions(const Aws::Vector< EventSubscription > &value)
void SetEventSubscriptions(const Aws::Vector< EventSubscription > &value)
UpdateAppRequest & WithPolicyArn(const Aws::String &value)
UpdateAppRequest & WithPolicyArn(Aws::String &&value)
UpdateAppRequest & WithDescription(const char *value)
UpdateAppRequest & WithDescription(Aws::String &&value)
UpdateAppRequest & WithAppArn(const Aws::String &value)
UpdateAppRequest & WithEventSubscriptions(Aws::Vector< EventSubscription > &&value)
UpdateAppRequest & WithAssessmentSchedule(AppAssessmentScheduleType &&value)
UpdateAppRequest & WithPolicyArn(const char *value)
UpdateAppRequest & WithAssessmentSchedule(const AppAssessmentScheduleType &value)
const PermissionModel & GetPermissionModel() const
void SetAssessmentSchedule(AppAssessmentScheduleType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector