AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
UpdateServiceRequest.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/resiliencehubv2/Resiliencehubv2Request.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11#include <aws/resiliencehubv2/model/AssociatedSystem.h>
12#include <aws/resiliencehubv2/model/DependencyDiscoveryInput.h>
13#include <aws/resiliencehubv2/model/PermissionModel.h>
14#include <aws/resiliencehubv2/model/ServiceReportConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace resiliencehubv2 {
20namespace Model {
21
25 public:
26 AWS_RESILIENCEHUBV2_API UpdateServiceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateService"; }
33
34 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
35
37
38 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
39 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
40 template <typename ServiceArnT = Aws::String>
41 void SetServiceArn(ServiceArnT&& value) {
42 m_serviceArnHasBeenSet = true;
43 m_serviceArn = std::forward<ServiceArnT>(value);
44 }
45 template <typename ServiceArnT = Aws::String>
46 UpdateServiceRequest& WithServiceArn(ServiceArnT&& value) {
47 SetServiceArn(std::forward<ServiceArnT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
62 UpdateServiceRequest& WithDescription(DescriptionT&& value) {
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Vector<AssociatedSystem>& GetAssociatedSystems() const { return m_associatedSystems; }
73 inline bool AssociatedSystemsHasBeenSet() const { return m_associatedSystemsHasBeenSet; }
74 template <typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
75 void SetAssociatedSystems(AssociatedSystemsT&& value) {
76 m_associatedSystemsHasBeenSet = true;
77 m_associatedSystems = std::forward<AssociatedSystemsT>(value);
78 }
79 template <typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
80 UpdateServiceRequest& WithAssociatedSystems(AssociatedSystemsT&& value) {
81 SetAssociatedSystems(std::forward<AssociatedSystemsT>(value));
82 return *this;
83 }
84 template <typename AssociatedSystemsT = AssociatedSystem>
85 UpdateServiceRequest& AddAssociatedSystems(AssociatedSystemsT&& value) {
86 m_associatedSystemsHasBeenSet = true;
87 m_associatedSystems.emplace_back(std::forward<AssociatedSystemsT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
95 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
96 template <typename PolicyArnT = Aws::String>
97 void SetPolicyArn(PolicyArnT&& value) {
98 m_policyArnHasBeenSet = true;
99 m_policyArn = std::forward<PolicyArnT>(value);
100 }
101 template <typename PolicyArnT = Aws::String>
102 UpdateServiceRequest& WithPolicyArn(PolicyArnT&& value) {
103 SetPolicyArn(std::forward<PolicyArnT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
113 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
114 template <typename RegionsT = Aws::Vector<Aws::String>>
115 void SetRegions(RegionsT&& value) {
116 m_regionsHasBeenSet = true;
117 m_regions = std::forward<RegionsT>(value);
118 }
119 template <typename RegionsT = Aws::Vector<Aws::String>>
121 SetRegions(std::forward<RegionsT>(value));
122 return *this;
123 }
124 template <typename RegionsT = Aws::String>
125 UpdateServiceRequest& AddRegions(RegionsT&& value) {
126 m_regionsHasBeenSet = true;
127 m_regions.emplace_back(std::forward<RegionsT>(value));
128 return *this;
129 }
131
133
136 inline const PermissionModel& GetPermissionModel() const { return m_permissionModel; }
137 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
138 template <typename PermissionModelT = PermissionModel>
139 void SetPermissionModel(PermissionModelT&& value) {
140 m_permissionModelHasBeenSet = true;
141 m_permissionModel = std::forward<PermissionModelT>(value);
142 }
143 template <typename PermissionModelT = PermissionModel>
144 UpdateServiceRequest& WithPermissionModel(PermissionModelT&& value) {
145 SetPermissionModel(std::forward<PermissionModelT>(value));
146 return *this;
147 }
149
151
152 inline DependencyDiscoveryInput GetDependencyDiscovery() const { return m_dependencyDiscovery; }
153 inline bool DependencyDiscoveryHasBeenSet() const { return m_dependencyDiscoveryHasBeenSet; }
155 m_dependencyDiscoveryHasBeenSet = true;
156 m_dependencyDiscovery = value;
157 }
160 return *this;
161 }
163
165
166 inline const ServiceReportConfiguration& GetReportConfiguration() const { return m_reportConfiguration; }
167 inline bool ReportConfigurationHasBeenSet() const { return m_reportConfigurationHasBeenSet; }
168 template <typename ReportConfigurationT = ServiceReportConfiguration>
169 void SetReportConfiguration(ReportConfigurationT&& value) {
170 m_reportConfigurationHasBeenSet = true;
171 m_reportConfiguration = std::forward<ReportConfigurationT>(value);
172 }
173 template <typename ReportConfigurationT = ServiceReportConfiguration>
174 UpdateServiceRequest& WithReportConfiguration(ReportConfigurationT&& value) {
175 SetReportConfiguration(std::forward<ReportConfigurationT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_serviceArn;
181
182 Aws::String m_description;
183
184 Aws::Vector<AssociatedSystem> m_associatedSystems;
185
186 Aws::String m_policyArn;
187
188 Aws::Vector<Aws::String> m_regions;
189
190 PermissionModel m_permissionModel;
191
193
194 ServiceReportConfiguration m_reportConfiguration;
195 bool m_serviceArnHasBeenSet = false;
196 bool m_descriptionHasBeenSet = false;
197 bool m_associatedSystemsHasBeenSet = false;
198 bool m_policyArnHasBeenSet = false;
199 bool m_regionsHasBeenSet = false;
200 bool m_permissionModelHasBeenSet = false;
201 bool m_dependencyDiscoveryHasBeenSet = false;
202 bool m_reportConfigurationHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace resiliencehubv2
207} // namespace Aws
const Aws::Vector< AssociatedSystem > & GetAssociatedSystems() const
const Aws::Vector< Aws::String > & GetRegions() const
UpdateServiceRequest & WithDependencyDiscovery(DependencyDiscoveryInput value)
UpdateServiceRequest & AddAssociatedSystems(AssociatedSystemsT &&value)
UpdateServiceRequest & WithAssociatedSystems(AssociatedSystemsT &&value)
void SetDependencyDiscovery(DependencyDiscoveryInput value)
UpdateServiceRequest & WithPolicyArn(PolicyArnT &&value)
UpdateServiceRequest & WithServiceArn(ServiceArnT &&value)
void SetAssociatedSystems(AssociatedSystemsT &&value)
const ServiceReportConfiguration & GetReportConfiguration() const
DependencyDiscoveryInput GetDependencyDiscovery() const
UpdateServiceRequest & WithDescription(DescriptionT &&value)
UpdateServiceRequest & WithReportConfiguration(ReportConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RESILIENCEHUBV2_API UpdateServiceRequest()=default
UpdateServiceRequest & AddRegions(RegionsT &&value)
void SetReportConfiguration(ReportConfigurationT &&value)
UpdateServiceRequest & WithPermissionModel(PermissionModelT &&value)
UpdateServiceRequest & WithRegions(RegionsT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector