AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateAssetRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/FormInput.h>
13#include <aws/datazone/model/PredictionConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API CreateAssetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAsset"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 CreateAssetRequest& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
58 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
59 template <typename DomainIdentifierT = Aws::String>
60 void SetDomainIdentifier(DomainIdentifierT&& value) {
61 m_domainIdentifierHasBeenSet = true;
62 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
63 }
64 template <typename DomainIdentifierT = Aws::String>
65 CreateAssetRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
66 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetExternalIdentifier() const { return m_externalIdentifier; }
78 inline bool ExternalIdentifierHasBeenSet() const { return m_externalIdentifierHasBeenSet; }
79 template <typename ExternalIdentifierT = Aws::String>
80 void SetExternalIdentifier(ExternalIdentifierT&& value) {
81 m_externalIdentifierHasBeenSet = true;
82 m_externalIdentifier = std::forward<ExternalIdentifierT>(value);
83 }
84 template <typename ExternalIdentifierT = Aws::String>
85 CreateAssetRequest& WithExternalIdentifier(ExternalIdentifierT&& value) {
86 SetExternalIdentifier(std::forward<ExternalIdentifierT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetTypeIdentifier() const { return m_typeIdentifier; }
96 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
97 template <typename TypeIdentifierT = Aws::String>
98 void SetTypeIdentifier(TypeIdentifierT&& value) {
99 m_typeIdentifierHasBeenSet = true;
100 m_typeIdentifier = std::forward<TypeIdentifierT>(value);
101 }
102 template <typename TypeIdentifierT = Aws::String>
103 CreateAssetRequest& WithTypeIdentifier(TypeIdentifierT&& value) {
104 SetTypeIdentifier(std::forward<TypeIdentifierT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetTypeRevision() const { return m_typeRevision; }
114 inline bool TypeRevisionHasBeenSet() const { return m_typeRevisionHasBeenSet; }
115 template <typename TypeRevisionT = Aws::String>
116 void SetTypeRevision(TypeRevisionT&& value) {
117 m_typeRevisionHasBeenSet = true;
118 m_typeRevision = std::forward<TypeRevisionT>(value);
119 }
120 template <typename TypeRevisionT = Aws::String>
121 CreateAssetRequest& WithTypeRevision(TypeRevisionT&& value) {
122 SetTypeRevision(std::forward<TypeRevisionT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
139 CreateAssetRequest& WithDescription(DescriptionT&& value) {
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
150 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
151 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
152 void SetGlossaryTerms(GlossaryTermsT&& value) {
153 m_glossaryTermsHasBeenSet = true;
154 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
155 }
156 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
157 CreateAssetRequest& WithGlossaryTerms(GlossaryTermsT&& value) {
158 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
159 return *this;
160 }
161 template <typename GlossaryTermsT = Aws::String>
162 CreateAssetRequest& AddGlossaryTerms(GlossaryTermsT&& value) {
163 m_glossaryTermsHasBeenSet = true;
164 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Vector<FormInput>& GetFormsInput() const { return m_formsInput; }
174 inline bool FormsInputHasBeenSet() const { return m_formsInputHasBeenSet; }
175 template <typename FormsInputT = Aws::Vector<FormInput>>
176 void SetFormsInput(FormsInputT&& value) {
177 m_formsInputHasBeenSet = true;
178 m_formsInput = std::forward<FormsInputT>(value);
179 }
180 template <typename FormsInputT = Aws::Vector<FormInput>>
181 CreateAssetRequest& WithFormsInput(FormsInputT&& value) {
182 SetFormsInput(std::forward<FormsInputT>(value));
183 return *this;
184 }
185 template <typename FormsInputT = FormInput>
186 CreateAssetRequest& AddFormsInput(FormsInputT&& value) {
187 m_formsInputHasBeenSet = true;
188 m_formsInput.emplace_back(std::forward<FormsInputT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
198 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
199 template <typename OwningProjectIdentifierT = Aws::String>
200 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
201 m_owningProjectIdentifierHasBeenSet = true;
202 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
203 }
204 template <typename OwningProjectIdentifierT = Aws::String>
205 CreateAssetRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
206 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
207 return *this;
208 }
210
212
216 inline const PredictionConfiguration& GetPredictionConfiguration() const { return m_predictionConfiguration; }
217 inline bool PredictionConfigurationHasBeenSet() const { return m_predictionConfigurationHasBeenSet; }
218 template <typename PredictionConfigurationT = PredictionConfiguration>
219 void SetPredictionConfiguration(PredictionConfigurationT&& value) {
220 m_predictionConfigurationHasBeenSet = true;
221 m_predictionConfiguration = std::forward<PredictionConfigurationT>(value);
222 }
223 template <typename PredictionConfigurationT = PredictionConfiguration>
224 CreateAssetRequest& WithPredictionConfiguration(PredictionConfigurationT&& value) {
225 SetPredictionConfiguration(std::forward<PredictionConfigurationT>(value));
226 return *this;
227 }
229
231
235 inline const Aws::String& GetClientToken() const { return m_clientToken; }
236 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
237 template <typename ClientTokenT = Aws::String>
238 void SetClientToken(ClientTokenT&& value) {
239 m_clientTokenHasBeenSet = true;
240 m_clientToken = std::forward<ClientTokenT>(value);
241 }
242 template <typename ClientTokenT = Aws::String>
243 CreateAssetRequest& WithClientToken(ClientTokenT&& value) {
244 SetClientToken(std::forward<ClientTokenT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_name;
250
251 Aws::String m_domainIdentifier;
252
253 Aws::String m_externalIdentifier;
254
255 Aws::String m_typeIdentifier;
256
257 Aws::String m_typeRevision;
258
259 Aws::String m_description;
260
261 Aws::Vector<Aws::String> m_glossaryTerms;
262
263 Aws::Vector<FormInput> m_formsInput;
264
265 Aws::String m_owningProjectIdentifier;
266
267 PredictionConfiguration m_predictionConfiguration;
268
270 bool m_nameHasBeenSet = false;
271 bool m_domainIdentifierHasBeenSet = false;
272 bool m_externalIdentifierHasBeenSet = false;
273 bool m_typeIdentifierHasBeenSet = false;
274 bool m_typeRevisionHasBeenSet = false;
275 bool m_descriptionHasBeenSet = false;
276 bool m_glossaryTermsHasBeenSet = false;
277 bool m_formsInputHasBeenSet = false;
278 bool m_owningProjectIdentifierHasBeenSet = false;
279 bool m_predictionConfigurationHasBeenSet = false;
280 bool m_clientTokenHasBeenSet = true;
281};
282
283} // namespace Model
284} // namespace DataZone
285} // namespace Aws
const Aws::String & GetTypeIdentifier() const
CreateAssetRequest & WithExternalIdentifier(ExternalIdentifierT &&value)
const Aws::Vector< FormInput > & GetFormsInput() const
CreateAssetRequest & AddGlossaryTerms(GlossaryTermsT &&value)
const Aws::String & GetOwningProjectIdentifier() const
const Aws::String & GetTypeRevision() const
const Aws::String & GetDomainIdentifier() const
CreateAssetRequest & AddFormsInput(FormsInputT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
const Aws::String & GetExternalIdentifier() const
CreateAssetRequest & WithTypeIdentifier(TypeIdentifierT &&value)
AWS_DATAZONE_API CreateAssetRequest()=default
CreateAssetRequest & WithName(NameT &&value)
CreateAssetRequest & WithClientToken(ClientTokenT &&value)
CreateAssetRequest & WithPredictionConfiguration(PredictionConfigurationT &&value)
CreateAssetRequest & WithFormsInput(FormsInputT &&value)
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
virtual const char * GetServiceRequestName() const override
CreateAssetRequest & WithOwningProjectIdentifier(OwningProjectIdentifierT &&value)
const PredictionConfiguration & GetPredictionConfiguration() const
void SetTypeIdentifier(TypeIdentifierT &&value)
void SetTypeRevision(TypeRevisionT &&value)
void SetGlossaryTerms(GlossaryTermsT &&value)
void SetExternalIdentifier(ExternalIdentifierT &&value)
void SetPredictionConfiguration(PredictionConfigurationT &&value)
void SetOwningProjectIdentifier(OwningProjectIdentifierT &&value)
CreateAssetRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateAssetRequest & WithTypeRevision(TypeRevisionT &&value)
CreateAssetRequest & WithGlossaryTerms(GlossaryTermsT &&value)
CreateAssetRequest & WithDescription(DescriptionT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector