AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
41 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
42 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
43 template <typename DomainIdentifierT = Aws::String>
44 void SetDomainIdentifier(DomainIdentifierT&& value) {
45 m_domainIdentifierHasBeenSet = true;
46 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
47 }
48 template <typename DomainIdentifierT = Aws::String>
49 UpdateDataSourceRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
50 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIdentifier() const { return m_identifier; }
60 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
61 template <typename IdentifierT = Aws::String>
62 void SetIdentifier(IdentifierT&& value) {
63 m_identifierHasBeenSet = true;
64 m_identifier = std::forward<IdentifierT>(value);
65 }
66 template <typename IdentifierT = Aws::String>
68 SetIdentifier(std::forward<IdentifierT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
116 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
117 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
118 inline void SetEnableSetting(EnableSetting value) {
119 m_enableSettingHasBeenSet = true;
120 m_enableSetting = value;
121 }
123 SetEnableSetting(value);
124 return *this;
125 }
127
129
133 inline bool GetPublishOnImport() const { return m_publishOnImport; }
134 inline bool PublishOnImportHasBeenSet() const { return m_publishOnImportHasBeenSet; }
135 inline void SetPublishOnImport(bool value) {
136 m_publishOnImportHasBeenSet = true;
137 m_publishOnImport = value;
138 }
140 SetPublishOnImport(value);
141 return *this;
142 }
144
146
150 inline const Aws::Vector<FormInput>& GetAssetFormsInput() const { return m_assetFormsInput; }
151 inline bool AssetFormsInputHasBeenSet() const { return m_assetFormsInputHasBeenSet; }
152 template <typename AssetFormsInputT = Aws::Vector<FormInput>>
153 void SetAssetFormsInput(AssetFormsInputT&& value) {
154 m_assetFormsInputHasBeenSet = true;
155 m_assetFormsInput = std::forward<AssetFormsInputT>(value);
156 }
157 template <typename AssetFormsInputT = Aws::Vector<FormInput>>
158 UpdateDataSourceRequest& WithAssetFormsInput(AssetFormsInputT&& value) {
159 SetAssetFormsInput(std::forward<AssetFormsInputT>(value));
160 return *this;
161 }
162 template <typename AssetFormsInputT = FormInput>
163 UpdateDataSourceRequest& AddAssetFormsInput(AssetFormsInputT&& value) {
164 m_assetFormsInputHasBeenSet = true;
165 m_assetFormsInput.emplace_back(std::forward<AssetFormsInputT>(value));
166 return *this;
167 }
169
171
175 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
176 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
177 template <typename ScheduleT = ScheduleConfiguration>
178 void SetSchedule(ScheduleT&& value) {
179 m_scheduleHasBeenSet = true;
180 m_schedule = std::forward<ScheduleT>(value);
181 }
182 template <typename ScheduleT = ScheduleConfiguration>
184 SetSchedule(std::forward<ScheduleT>(value));
185 return *this;
186 }
188
190
194 inline const DataSourceConfigurationInput& GetConfiguration() const { return m_configuration; }
195 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
196 template <typename ConfigurationT = DataSourceConfigurationInput>
197 void SetConfiguration(ConfigurationT&& value) {
198 m_configurationHasBeenSet = true;
199 m_configuration = std::forward<ConfigurationT>(value);
200 }
201 template <typename ConfigurationT = DataSourceConfigurationInput>
203 SetConfiguration(std::forward<ConfigurationT>(value));
204 return *this;
205 }
207
209
213 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
214 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
215 template <typename RecommendationT = RecommendationConfiguration>
216 void SetRecommendation(RecommendationT&& value) {
217 m_recommendationHasBeenSet = true;
218 m_recommendation = std::forward<RecommendationT>(value);
219 }
220 template <typename RecommendationT = RecommendationConfiguration>
221 UpdateDataSourceRequest& WithRecommendation(RecommendationT&& value) {
222 SetRecommendation(std::forward<RecommendationT>(value));
223 return *this;
224 }
226
228
232 inline bool GetRetainPermissionsOnRevokeFailure() const { return m_retainPermissionsOnRevokeFailure; }
233 inline bool RetainPermissionsOnRevokeFailureHasBeenSet() const { return m_retainPermissionsOnRevokeFailureHasBeenSet; }
234 inline void SetRetainPermissionsOnRevokeFailure(bool value) {
235 m_retainPermissionsOnRevokeFailureHasBeenSet = true;
236 m_retainPermissionsOnRevokeFailure = value;
237 }
240 return *this;
241 }
243 private:
244 Aws::String m_domainIdentifier;
245
246 Aws::String m_identifier;
247
248 Aws::String m_name;
249
250 Aws::String m_description;
251
252 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
253
254 bool m_publishOnImport{false};
255
256 Aws::Vector<FormInput> m_assetFormsInput;
257
258 ScheduleConfiguration m_schedule;
259
260 DataSourceConfigurationInput m_configuration;
261
262 RecommendationConfiguration m_recommendation;
263
264 bool m_retainPermissionsOnRevokeFailure{false};
265 bool m_domainIdentifierHasBeenSet = false;
266 bool m_identifierHasBeenSet = false;
267 bool m_nameHasBeenSet = false;
268 bool m_descriptionHasBeenSet = false;
269 bool m_enableSettingHasBeenSet = false;
270 bool m_publishOnImportHasBeenSet = false;
271 bool m_assetFormsInputHasBeenSet = false;
272 bool m_scheduleHasBeenSet = false;
273 bool m_configurationHasBeenSet = false;
274 bool m_recommendationHasBeenSet = false;
275 bool m_retainPermissionsOnRevokeFailureHasBeenSet = 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