AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
48 CreateAssetRequest& WithClientToken(ClientTokenT&& value) {
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 CreateAssetRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
77 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
78 template <typename DomainIdentifierT = Aws::String>
79 void SetDomainIdentifier(DomainIdentifierT&& value) {
80 m_domainIdentifierHasBeenSet = true;
81 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
82 }
83 template <typename DomainIdentifierT = Aws::String>
84 CreateAssetRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
85 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetExternalIdentifier() const { return m_externalIdentifier; }
97 inline bool ExternalIdentifierHasBeenSet() const { return m_externalIdentifierHasBeenSet; }
98 template <typename ExternalIdentifierT = Aws::String>
99 void SetExternalIdentifier(ExternalIdentifierT&& value) {
100 m_externalIdentifierHasBeenSet = true;
101 m_externalIdentifier = std::forward<ExternalIdentifierT>(value);
102 }
103 template <typename ExternalIdentifierT = Aws::String>
104 CreateAssetRequest& WithExternalIdentifier(ExternalIdentifierT&& value) {
105 SetExternalIdentifier(std::forward<ExternalIdentifierT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<FormInput>& GetFormsInput() const { return m_formsInput; }
115 inline bool FormsInputHasBeenSet() const { return m_formsInputHasBeenSet; }
116 template <typename FormsInputT = Aws::Vector<FormInput>>
117 void SetFormsInput(FormsInputT&& value) {
118 m_formsInputHasBeenSet = true;
119 m_formsInput = std::forward<FormsInputT>(value);
120 }
121 template <typename FormsInputT = Aws::Vector<FormInput>>
122 CreateAssetRequest& WithFormsInput(FormsInputT&& value) {
123 SetFormsInput(std::forward<FormsInputT>(value));
124 return *this;
125 }
126 template <typename FormsInputT = FormInput>
127 CreateAssetRequest& AddFormsInput(FormsInputT&& value) {
128 m_formsInputHasBeenSet = true;
129 m_formsInput.emplace_back(std::forward<FormsInputT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
139 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
140 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
141 void SetGlossaryTerms(GlossaryTermsT&& value) {
142 m_glossaryTermsHasBeenSet = true;
143 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
144 }
145 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
146 CreateAssetRequest& WithGlossaryTerms(GlossaryTermsT&& value) {
147 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
148 return *this;
149 }
150 template <typename GlossaryTermsT = Aws::String>
151 CreateAssetRequest& AddGlossaryTerms(GlossaryTermsT&& value) {
152 m_glossaryTermsHasBeenSet = true;
153 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetName() const { return m_name; }
163 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
164 template <typename NameT = Aws::String>
165 void SetName(NameT&& value) {
166 m_nameHasBeenSet = true;
167 m_name = std::forward<NameT>(value);
168 }
169 template <typename NameT = Aws::String>
170 CreateAssetRequest& WithName(NameT&& value) {
171 SetName(std::forward<NameT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
181 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
182 template <typename OwningProjectIdentifierT = Aws::String>
183 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
184 m_owningProjectIdentifierHasBeenSet = true;
185 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
186 }
187 template <typename OwningProjectIdentifierT = Aws::String>
188 CreateAssetRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
189 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
190 return *this;
191 }
193
195
199 inline const PredictionConfiguration& GetPredictionConfiguration() const { return m_predictionConfiguration; }
200 inline bool PredictionConfigurationHasBeenSet() const { return m_predictionConfigurationHasBeenSet; }
201 template <typename PredictionConfigurationT = PredictionConfiguration>
202 void SetPredictionConfiguration(PredictionConfigurationT&& value) {
203 m_predictionConfigurationHasBeenSet = true;
204 m_predictionConfiguration = std::forward<PredictionConfigurationT>(value);
205 }
206 template <typename PredictionConfigurationT = PredictionConfiguration>
207 CreateAssetRequest& WithPredictionConfiguration(PredictionConfigurationT&& value) {
208 SetPredictionConfiguration(std::forward<PredictionConfigurationT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetTypeIdentifier() const { return m_typeIdentifier; }
218 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
219 template <typename TypeIdentifierT = Aws::String>
220 void SetTypeIdentifier(TypeIdentifierT&& value) {
221 m_typeIdentifierHasBeenSet = true;
222 m_typeIdentifier = std::forward<TypeIdentifierT>(value);
223 }
224 template <typename TypeIdentifierT = Aws::String>
225 CreateAssetRequest& WithTypeIdentifier(TypeIdentifierT&& value) {
226 SetTypeIdentifier(std::forward<TypeIdentifierT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetTypeRevision() const { return m_typeRevision; }
236 inline bool TypeRevisionHasBeenSet() const { return m_typeRevisionHasBeenSet; }
237 template <typename TypeRevisionT = Aws::String>
238 void SetTypeRevision(TypeRevisionT&& value) {
239 m_typeRevisionHasBeenSet = true;
240 m_typeRevision = std::forward<TypeRevisionT>(value);
241 }
242 template <typename TypeRevisionT = Aws::String>
243 CreateAssetRequest& WithTypeRevision(TypeRevisionT&& value) {
244 SetTypeRevision(std::forward<TypeRevisionT>(value));
245 return *this;
246 }
248 private:
250 bool m_clientTokenHasBeenSet = true;
251
252 Aws::String m_description;
253 bool m_descriptionHasBeenSet = false;
254
255 Aws::String m_domainIdentifier;
256 bool m_domainIdentifierHasBeenSet = false;
257
258 Aws::String m_externalIdentifier;
259 bool m_externalIdentifierHasBeenSet = false;
260
261 Aws::Vector<FormInput> m_formsInput;
262 bool m_formsInputHasBeenSet = false;
263
264 Aws::Vector<Aws::String> m_glossaryTerms;
265 bool m_glossaryTermsHasBeenSet = false;
266
267 Aws::String m_name;
268 bool m_nameHasBeenSet = false;
269
270 Aws::String m_owningProjectIdentifier;
271 bool m_owningProjectIdentifierHasBeenSet = false;
272
273 PredictionConfiguration m_predictionConfiguration;
274 bool m_predictionConfigurationHasBeenSet = false;
275
276 Aws::String m_typeIdentifier;
277 bool m_typeIdentifierHasBeenSet = false;
278
279 Aws::String m_typeRevision;
280 bool m_typeRevisionHasBeenSet = false;
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)
const Aws::String & GetClientToken() const
void SetOwningProjectIdentifier(OwningProjectIdentifierT &&value)
const Aws::String & GetDescription() const
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