AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
80 inline const Aws::String& GetExternalIdentifier() const { return m_externalIdentifier; }
81 inline bool ExternalIdentifierHasBeenSet() const { return m_externalIdentifierHasBeenSet; }
82 template<typename ExternalIdentifierT = Aws::String>
83 void SetExternalIdentifier(ExternalIdentifierT&& value) { m_externalIdentifierHasBeenSet = true; m_externalIdentifier = std::forward<ExternalIdentifierT>(value); }
84 template<typename ExternalIdentifierT = Aws::String>
85 CreateAssetRequest& WithExternalIdentifier(ExternalIdentifierT&& value) { SetExternalIdentifier(std::forward<ExternalIdentifierT>(value)); return *this;}
87
89
92 inline const Aws::Vector<FormInput>& GetFormsInput() const { return m_formsInput; }
93 inline bool FormsInputHasBeenSet() const { return m_formsInputHasBeenSet; }
94 template<typename FormsInputT = Aws::Vector<FormInput>>
95 void SetFormsInput(FormsInputT&& value) { m_formsInputHasBeenSet = true; m_formsInput = std::forward<FormsInputT>(value); }
96 template<typename FormsInputT = Aws::Vector<FormInput>>
97 CreateAssetRequest& WithFormsInput(FormsInputT&& value) { SetFormsInput(std::forward<FormsInputT>(value)); return *this;}
98 template<typename FormsInputT = FormInput>
99 CreateAssetRequest& AddFormsInput(FormsInputT&& value) { m_formsInputHasBeenSet = true; m_formsInput.emplace_back(std::forward<FormsInputT>(value)); return *this; }
101
103
106 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
107 inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; }
108 template<typename GlossaryTermsT = Aws::Vector<Aws::String>>
109 void SetGlossaryTerms(GlossaryTermsT&& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms = std::forward<GlossaryTermsT>(value); }
110 template<typename GlossaryTermsT = Aws::Vector<Aws::String>>
111 CreateAssetRequest& WithGlossaryTerms(GlossaryTermsT&& value) { SetGlossaryTerms(std::forward<GlossaryTermsT>(value)); return *this;}
112 template<typename GlossaryTermsT = Aws::String>
113 CreateAssetRequest& AddGlossaryTerms(GlossaryTermsT&& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value)); return *this; }
115
117
120 inline const Aws::String& GetName() const { return m_name; }
121 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
122 template<typename NameT = Aws::String>
123 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
124 template<typename NameT = Aws::String>
125 CreateAssetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
127
129
132 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
133 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
134 template<typename OwningProjectIdentifierT = Aws::String>
135 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) { m_owningProjectIdentifierHasBeenSet = true; m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value); }
136 template<typename OwningProjectIdentifierT = Aws::String>
137 CreateAssetRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) { SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value)); return *this;}
139
141
145 inline const PredictionConfiguration& GetPredictionConfiguration() const { return m_predictionConfiguration; }
146 inline bool PredictionConfigurationHasBeenSet() const { return m_predictionConfigurationHasBeenSet; }
147 template<typename PredictionConfigurationT = PredictionConfiguration>
148 void SetPredictionConfiguration(PredictionConfigurationT&& value) { m_predictionConfigurationHasBeenSet = true; m_predictionConfiguration = std::forward<PredictionConfigurationT>(value); }
149 template<typename PredictionConfigurationT = PredictionConfiguration>
150 CreateAssetRequest& WithPredictionConfiguration(PredictionConfigurationT&& value) { SetPredictionConfiguration(std::forward<PredictionConfigurationT>(value)); return *this;}
152
154
157 inline const Aws::String& GetTypeIdentifier() const { return m_typeIdentifier; }
158 inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; }
159 template<typename TypeIdentifierT = Aws::String>
160 void SetTypeIdentifier(TypeIdentifierT&& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = std::forward<TypeIdentifierT>(value); }
161 template<typename TypeIdentifierT = Aws::String>
162 CreateAssetRequest& WithTypeIdentifier(TypeIdentifierT&& value) { SetTypeIdentifier(std::forward<TypeIdentifierT>(value)); return *this;}
164
166
169 inline const Aws::String& GetTypeRevision() const { return m_typeRevision; }
170 inline bool TypeRevisionHasBeenSet() const { return m_typeRevisionHasBeenSet; }
171 template<typename TypeRevisionT = Aws::String>
172 void SetTypeRevision(TypeRevisionT&& value) { m_typeRevisionHasBeenSet = true; m_typeRevision = std::forward<TypeRevisionT>(value); }
173 template<typename TypeRevisionT = Aws::String>
174 CreateAssetRequest& WithTypeRevision(TypeRevisionT&& value) { SetTypeRevision(std::forward<TypeRevisionT>(value)); return *this;}
176 private:
177
179 bool m_clientTokenHasBeenSet = true;
180
181 Aws::String m_description;
182 bool m_descriptionHasBeenSet = false;
183
184 Aws::String m_domainIdentifier;
185 bool m_domainIdentifierHasBeenSet = false;
186
187 Aws::String m_externalIdentifier;
188 bool m_externalIdentifierHasBeenSet = false;
189
190 Aws::Vector<FormInput> m_formsInput;
191 bool m_formsInputHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_glossaryTerms;
194 bool m_glossaryTermsHasBeenSet = false;
195
196 Aws::String m_name;
197 bool m_nameHasBeenSet = false;
198
199 Aws::String m_owningProjectIdentifier;
200 bool m_owningProjectIdentifierHasBeenSet = false;
201
202 PredictionConfiguration m_predictionConfiguration;
203 bool m_predictionConfigurationHasBeenSet = false;
204
205 Aws::String m_typeIdentifier;
206 bool m_typeIdentifierHasBeenSet = false;
207
208 Aws::String m_typeRevision;
209 bool m_typeRevisionHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace DataZone
214} // 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