AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateAssetRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/model/PredictionConfiguration.h>
12#include <aws/datazone/model/FormInput.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DataZone
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DATAZONE_API CreateAssetRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAsset"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template<typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
48 template<typename ClientTokenT = Aws::String>
49 CreateAssetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateAssetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
69 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
70 template<typename DomainIdentifierT = Aws::String>
71 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
72 template<typename DomainIdentifierT = Aws::String>
73 CreateAssetRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
75
77
82 inline const Aws::String& GetExternalIdentifier() const { return m_externalIdentifier; }
83 inline bool ExternalIdentifierHasBeenSet() const { return m_externalIdentifierHasBeenSet; }
84 template<typename ExternalIdentifierT = Aws::String>
85 void SetExternalIdentifier(ExternalIdentifierT&& value) { m_externalIdentifierHasBeenSet = true; m_externalIdentifier = std::forward<ExternalIdentifierT>(value); }
86 template<typename ExternalIdentifierT = Aws::String>
87 CreateAssetRequest& WithExternalIdentifier(ExternalIdentifierT&& value) { SetExternalIdentifier(std::forward<ExternalIdentifierT>(value)); return *this;}
89
91
94 inline const Aws::Vector<FormInput>& GetFormsInput() const { return m_formsInput; }
95 inline bool FormsInputHasBeenSet() const { return m_formsInputHasBeenSet; }
96 template<typename FormsInputT = Aws::Vector<FormInput>>
97 void SetFormsInput(FormsInputT&& value) { m_formsInputHasBeenSet = true; m_formsInput = std::forward<FormsInputT>(value); }
98 template<typename FormsInputT = Aws::Vector<FormInput>>
99 CreateAssetRequest& WithFormsInput(FormsInputT&& value) { SetFormsInput(std::forward<FormsInputT>(value)); return *this;}
100 template<typename FormsInputT = FormInput>
101 CreateAssetRequest& AddFormsInput(FormsInputT&& value) { m_formsInputHasBeenSet = true; m_formsInput.emplace_back(std::forward<FormsInputT>(value)); return *this; }
103
105
108 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
109 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
110 template<typename GlossaryTermsT = Aws::Vector<Aws::String>>
111 void SetGlossaryTerms(GlossaryTermsT&& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms = std::forward<GlossaryTermsT>(value); }
112 template<typename GlossaryTermsT = Aws::Vector<Aws::String>>
113 CreateAssetRequest& WithGlossaryTerms(GlossaryTermsT&& value) { SetGlossaryTerms(std::forward<GlossaryTermsT>(value)); return *this;}
114 template<typename GlossaryTermsT = Aws::String>
115 CreateAssetRequest& AddGlossaryTerms(GlossaryTermsT&& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value)); return *this; }
117
119
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 CreateAssetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
129
131
134 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
135 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
136 template<typename OwningProjectIdentifierT = Aws::String>
137 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) { m_owningProjectIdentifierHasBeenSet = true; m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value); }
138 template<typename OwningProjectIdentifierT = Aws::String>
139 CreateAssetRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) { SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value)); return *this;}
141
143
147 inline const PredictionConfiguration& GetPredictionConfiguration() const { return m_predictionConfiguration; }
148 inline bool PredictionConfigurationHasBeenSet() const { return m_predictionConfigurationHasBeenSet; }
149 template<typename PredictionConfigurationT = PredictionConfiguration>
150 void SetPredictionConfiguration(PredictionConfigurationT&& value) { m_predictionConfigurationHasBeenSet = true; m_predictionConfiguration = std::forward<PredictionConfigurationT>(value); }
151 template<typename PredictionConfigurationT = PredictionConfiguration>
152 CreateAssetRequest& WithPredictionConfiguration(PredictionConfigurationT&& value) { SetPredictionConfiguration(std::forward<PredictionConfigurationT>(value)); return *this;}
154
156
159 inline const Aws::String& GetTypeIdentifier() const { return m_typeIdentifier; }
160 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
161 template<typename TypeIdentifierT = Aws::String>
162 void SetTypeIdentifier(TypeIdentifierT&& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = std::forward<TypeIdentifierT>(value); }
163 template<typename TypeIdentifierT = Aws::String>
164 CreateAssetRequest& WithTypeIdentifier(TypeIdentifierT&& value) { SetTypeIdentifier(std::forward<TypeIdentifierT>(value)); return *this;}
166
168
171 inline const Aws::String& GetTypeRevision() const { return m_typeRevision; }
172 inline bool TypeRevisionHasBeenSet() const { return m_typeRevisionHasBeenSet; }
173 template<typename TypeRevisionT = Aws::String>
174 void SetTypeRevision(TypeRevisionT&& value) { m_typeRevisionHasBeenSet = true; m_typeRevision = std::forward<TypeRevisionT>(value); }
175 template<typename TypeRevisionT = Aws::String>
176 CreateAssetRequest& WithTypeRevision(TypeRevisionT&& value) { SetTypeRevision(std::forward<TypeRevisionT>(value)); return *this;}
178 private:
179
181 bool m_clientTokenHasBeenSet = true;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 Aws::String m_domainIdentifier;
187 bool m_domainIdentifierHasBeenSet = false;
188
189 Aws::String m_externalIdentifier;
190 bool m_externalIdentifierHasBeenSet = false;
191
192 Aws::Vector<FormInput> m_formsInput;
193 bool m_formsInputHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_glossaryTerms;
196 bool m_glossaryTermsHasBeenSet = false;
197
198 Aws::String m_name;
199 bool m_nameHasBeenSet = false;
200
201 Aws::String m_owningProjectIdentifier;
202 bool m_owningProjectIdentifierHasBeenSet = false;
203
204 PredictionConfiguration m_predictionConfiguration;
205 bool m_predictionConfigurationHasBeenSet = false;
206
207 Aws::String m_typeIdentifier;
208 bool m_typeIdentifierHasBeenSet = false;
209
210 Aws::String m_typeRevision;
211 bool m_typeRevisionHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace DataZone
216} // 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