AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
UpdateDataSourceRequest.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/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/DataSourceConfigurationInput.h>
12#include <aws/datazone/model/EnableSetting.h>
13#include <aws/datazone/model/FormInput.h>
14#include <aws/datazone/model/RecommendationConfiguration.h>
15#include <aws/datazone/model/ScheduleConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DataZone {
21namespace Model {
22
26 public:
27 AWS_DATAZONE_API UpdateDataSourceRequest() = 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 "UpdateDataSource"; }
34
35 AWS_DATAZONE_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::Vector<FormInput>& GetAssetFormsInput() const { return m_assetFormsInput; }
43 inline bool AssetFormsInputHasBeenSet() const { return m_assetFormsInputHasBeenSet; }
44 template <typename AssetFormsInputT = Aws::Vector<FormInput>>
45 void SetAssetFormsInput(AssetFormsInputT&& value) {
46 m_assetFormsInputHasBeenSet = true;
47 m_assetFormsInput = std::forward<AssetFormsInputT>(value);
48 }
49 template <typename AssetFormsInputT = Aws::Vector<FormInput>>
50 UpdateDataSourceRequest& WithAssetFormsInput(AssetFormsInputT&& value) {
51 SetAssetFormsInput(std::forward<AssetFormsInputT>(value));
52 return *this;
53 }
54 template <typename AssetFormsInputT = FormInput>
55 UpdateDataSourceRequest& AddAssetFormsInput(AssetFormsInputT&& value) {
56 m_assetFormsInputHasBeenSet = true;
57 m_assetFormsInput.emplace_back(std::forward<AssetFormsInputT>(value));
58 return *this;
59 }
61
63
67 inline const DataSourceConfigurationInput& GetConfiguration() const { return m_configuration; }
68 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
69 template <typename ConfigurationT = DataSourceConfigurationInput>
70 void SetConfiguration(ConfigurationT&& value) {
71 m_configurationHasBeenSet = true;
72 m_configuration = std::forward<ConfigurationT>(value);
73 }
74 template <typename ConfigurationT = DataSourceConfigurationInput>
75 UpdateDataSourceRequest& WithConfiguration(ConfigurationT&& value) {
76 SetConfiguration(std::forward<ConfigurationT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
105 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
106 template <typename DomainIdentifierT = Aws::String>
107 void SetDomainIdentifier(DomainIdentifierT&& value) {
108 m_domainIdentifierHasBeenSet = true;
109 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
110 }
111 template <typename DomainIdentifierT = Aws::String>
112 UpdateDataSourceRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
113 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
114 return *this;
115 }
117
119
123 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
124 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
125 inline void SetEnableSetting(EnableSetting value) {
126 m_enableSettingHasBeenSet = true;
127 m_enableSetting = value;
128 }
130 SetEnableSetting(value);
131 return *this;
132 }
134
136
139 inline const Aws::String& GetIdentifier() const { return m_identifier; }
140 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
141 template <typename IdentifierT = Aws::String>
142 void SetIdentifier(IdentifierT&& value) {
143 m_identifierHasBeenSet = true;
144 m_identifier = std::forward<IdentifierT>(value);
145 }
146 template <typename IdentifierT = Aws::String>
148 SetIdentifier(std::forward<IdentifierT>(value));
149 return *this;
150 }
152
154
158 inline const Aws::String& GetName() const { return m_name; }
159 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
160 template <typename NameT = Aws::String>
161 void SetName(NameT&& value) {
162 m_nameHasBeenSet = true;
163 m_name = std::forward<NameT>(value);
164 }
165 template <typename NameT = Aws::String>
167 SetName(std::forward<NameT>(value));
168 return *this;
169 }
171
173
177 inline bool GetPublishOnImport() const { return m_publishOnImport; }
178 inline bool PublishOnImportHasBeenSet() const { return m_publishOnImportHasBeenSet; }
179 inline void SetPublishOnImport(bool value) {
180 m_publishOnImportHasBeenSet = true;
181 m_publishOnImport = value;
182 }
184 SetPublishOnImport(value);
185 return *this;
186 }
188
190
194 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
195 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
196 template <typename RecommendationT = RecommendationConfiguration>
197 void SetRecommendation(RecommendationT&& value) {
198 m_recommendationHasBeenSet = true;
199 m_recommendation = std::forward<RecommendationT>(value);
200 }
201 template <typename RecommendationT = RecommendationConfiguration>
202 UpdateDataSourceRequest& WithRecommendation(RecommendationT&& value) {
203 SetRecommendation(std::forward<RecommendationT>(value));
204 return *this;
205 }
207
209
213 inline bool GetRetainPermissionsOnRevokeFailure() const { return m_retainPermissionsOnRevokeFailure; }
214 inline bool RetainPermissionsOnRevokeFailureHasBeenSet() const { return m_retainPermissionsOnRevokeFailureHasBeenSet; }
215 inline void SetRetainPermissionsOnRevokeFailure(bool value) {
216 m_retainPermissionsOnRevokeFailureHasBeenSet = true;
217 m_retainPermissionsOnRevokeFailure = value;
218 }
221 return *this;
222 }
224
226
230 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
231 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
232 template <typename ScheduleT = ScheduleConfiguration>
233 void SetSchedule(ScheduleT&& value) {
234 m_scheduleHasBeenSet = true;
235 m_schedule = std::forward<ScheduleT>(value);
236 }
237 template <typename ScheduleT = ScheduleConfiguration>
239 SetSchedule(std::forward<ScheduleT>(value));
240 return *this;
241 }
243 private:
244 Aws::Vector<FormInput> m_assetFormsInput;
245 bool m_assetFormsInputHasBeenSet = false;
246
247 DataSourceConfigurationInput m_configuration;
248 bool m_configurationHasBeenSet = false;
249
250 Aws::String m_description;
251 bool m_descriptionHasBeenSet = false;
252
253 Aws::String m_domainIdentifier;
254 bool m_domainIdentifierHasBeenSet = false;
255
256 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
257 bool m_enableSettingHasBeenSet = false;
258
259 Aws::String m_identifier;
260 bool m_identifierHasBeenSet = false;
261
262 Aws::String m_name;
263 bool m_nameHasBeenSet = false;
264
265 bool m_publishOnImport{false};
266 bool m_publishOnImportHasBeenSet = false;
267
268 RecommendationConfiguration m_recommendation;
269 bool m_recommendationHasBeenSet = false;
270
271 bool m_retainPermissionsOnRevokeFailure{false};
272 bool m_retainPermissionsOnRevokeFailureHasBeenSet = false;
273
274 ScheduleConfiguration m_schedule;
275 bool m_scheduleHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace DataZone
280} // namespace Aws
UpdateDataSourceRequest & WithPublishOnImport(bool value)
UpdateDataSourceRequest & AddAssetFormsInput(AssetFormsInputT &&value)
UpdateDataSourceRequest & WithRecommendation(RecommendationT &&value)
UpdateDataSourceRequest & WithName(NameT &&value)
UpdateDataSourceRequest & WithSchedule(ScheduleT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
UpdateDataSourceRequest & WithEnableSetting(EnableSetting value)
const RecommendationConfiguration & GetRecommendation() const
UpdateDataSourceRequest & WithDomainIdentifier(DomainIdentifierT &&value)
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< FormInput > & GetAssetFormsInput() const
UpdateDataSourceRequest & WithRetainPermissionsOnRevokeFailure(bool value)
const DataSourceConfigurationInput & GetConfiguration() const
UpdateDataSourceRequest & WithAssetFormsInput(AssetFormsInputT &&value)
UpdateDataSourceRequest & WithConfiguration(ConfigurationT &&value)
const ScheduleConfiguration & GetSchedule() const
UpdateDataSourceRequest & WithIdentifier(IdentifierT &&value)
AWS_DATAZONE_API UpdateDataSourceRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector