AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/model/DataSourceConfigurationInput.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/datazone/model/EnableSetting.h>
13#include <aws/datazone/model/RecommendationConfiguration.h>
14#include <aws/datazone/model/ScheduleConfiguration.h>
15#include <aws/datazone/model/FormInput.h>
16#include <utility>
17
18namespace Aws
19{
20namespace DataZone
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DATAZONE_API UpdateDataSourceRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; }
37
38 AWS_DATAZONE_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::Vector<FormInput>& GetAssetFormsInput() const { return m_assetFormsInput; }
47 inline bool AssetFormsInputHasBeenSet() const { return m_assetFormsInputHasBeenSet; }
48 template<typename AssetFormsInputT = Aws::Vector<FormInput>>
49 void SetAssetFormsInput(AssetFormsInputT&& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput = std::forward<AssetFormsInputT>(value); }
50 template<typename AssetFormsInputT = Aws::Vector<FormInput>>
51 UpdateDataSourceRequest& WithAssetFormsInput(AssetFormsInputT&& value) { SetAssetFormsInput(std::forward<AssetFormsInputT>(value)); return *this;}
52 template<typename AssetFormsInputT = FormInput>
53 UpdateDataSourceRequest& AddAssetFormsInput(AssetFormsInputT&& value) { m_assetFormsInputHasBeenSet = true; m_assetFormsInput.emplace_back(std::forward<AssetFormsInputT>(value)); return *this; }
55
57
61 inline const DataSourceConfigurationInput& GetConfiguration() const { return m_configuration; }
62 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
63 template<typename ConfigurationT = DataSourceConfigurationInput>
64 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
65 template<typename ConfigurationT = DataSourceConfigurationInput>
66 UpdateDataSourceRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
68
70
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 UpdateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
87 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
88 template<typename DomainIdentifierT = Aws::String>
89 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
90 template<typename DomainIdentifierT = Aws::String>
91 UpdateDataSourceRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
93
95
99 inline EnableSetting GetEnableSetting() const { return m_enableSetting; }
100 inline bool EnableSettingHasBeenSet() const { return m_enableSettingHasBeenSet; }
101 inline void SetEnableSetting(EnableSetting value) { m_enableSettingHasBeenSet = true; m_enableSetting = value; }
104
106
109 inline const Aws::String& GetIdentifier() const { return m_identifier; }
110 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
111 template<typename IdentifierT = Aws::String>
112 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
113 template<typename IdentifierT = Aws::String>
114 UpdateDataSourceRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
116
118
122 inline const Aws::String& GetName() const { return m_name; }
123 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
124 template<typename NameT = Aws::String>
125 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
126 template<typename NameT = Aws::String>
127 UpdateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
129
131
135 inline bool GetPublishOnImport() const { return m_publishOnImport; }
136 inline bool PublishOnImportHasBeenSet() const { return m_publishOnImportHasBeenSet; }
137 inline void SetPublishOnImport(bool value) { m_publishOnImportHasBeenSet = true; m_publishOnImport = value; }
138 inline UpdateDataSourceRequest& WithPublishOnImport(bool value) { SetPublishOnImport(value); return *this;}
140
142
146 inline const RecommendationConfiguration& GetRecommendation() const { return m_recommendation; }
147 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
148 template<typename RecommendationT = RecommendationConfiguration>
149 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
150 template<typename RecommendationT = RecommendationConfiguration>
151 UpdateDataSourceRequest& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
153
155
159 inline bool GetRetainPermissionsOnRevokeFailure() const { return m_retainPermissionsOnRevokeFailure; }
160 inline bool RetainPermissionsOnRevokeFailureHasBeenSet() const { return m_retainPermissionsOnRevokeFailureHasBeenSet; }
161 inline void SetRetainPermissionsOnRevokeFailure(bool value) { m_retainPermissionsOnRevokeFailureHasBeenSet = true; m_retainPermissionsOnRevokeFailure = value; }
164
166
170 inline const ScheduleConfiguration& GetSchedule() const { return m_schedule; }
171 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
172 template<typename ScheduleT = ScheduleConfiguration>
173 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
174 template<typename ScheduleT = ScheduleConfiguration>
175 UpdateDataSourceRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
177 private:
178
179 Aws::Vector<FormInput> m_assetFormsInput;
180 bool m_assetFormsInputHasBeenSet = false;
181
182 DataSourceConfigurationInput m_configuration;
183 bool m_configurationHasBeenSet = false;
184
185 Aws::String m_description;
186 bool m_descriptionHasBeenSet = false;
187
188 Aws::String m_domainIdentifier;
189 bool m_domainIdentifierHasBeenSet = false;
190
191 EnableSetting m_enableSetting{EnableSetting::NOT_SET};
192 bool m_enableSettingHasBeenSet = false;
193
194 Aws::String m_identifier;
195 bool m_identifierHasBeenSet = false;
196
197 Aws::String m_name;
198 bool m_nameHasBeenSet = false;
199
200 bool m_publishOnImport{false};
201 bool m_publishOnImportHasBeenSet = false;
202
203 RecommendationConfiguration m_recommendation;
204 bool m_recommendationHasBeenSet = false;
205
206 bool m_retainPermissionsOnRevokeFailure{false};
207 bool m_retainPermissionsOnRevokeFailureHasBeenSet = false;
208
209 ScheduleConfiguration m_schedule;
210 bool m_scheduleHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace DataZone
215} // 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