AWS SDK for C++  1.9.102
AWS SDK for C++
CreateArtifactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace SageMaker
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateArtifact"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetArtifactName() const{ return m_artifactName; }
47 
52  inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
53 
58  inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; }
59 
64  inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); }
65 
70  inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); }
71 
76  inline CreateArtifactRequest& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;}
77 
82  inline CreateArtifactRequest& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;}
83 
88  inline CreateArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;}
89 
90 
94  inline const ArtifactSource& GetSource() const{ return m_source; }
95 
99  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
100 
104  inline void SetSource(const ArtifactSource& value) { m_sourceHasBeenSet = true; m_source = value; }
105 
109  inline void SetSource(ArtifactSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
110 
114  inline CreateArtifactRequest& WithSource(const ArtifactSource& value) { SetSource(value); return *this;}
115 
119  inline CreateArtifactRequest& WithSource(ArtifactSource&& value) { SetSource(std::move(value)); return *this;}
120 
121 
125  inline const Aws::String& GetArtifactType() const{ return m_artifactType; }
126 
130  inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
131 
135  inline void SetArtifactType(const Aws::String& value) { m_artifactTypeHasBeenSet = true; m_artifactType = value; }
136 
140  inline void SetArtifactType(Aws::String&& value) { m_artifactTypeHasBeenSet = true; m_artifactType = std::move(value); }
141 
145  inline void SetArtifactType(const char* value) { m_artifactTypeHasBeenSet = true; m_artifactType.assign(value); }
146 
150  inline CreateArtifactRequest& WithArtifactType(const Aws::String& value) { SetArtifactType(value); return *this;}
151 
155  inline CreateArtifactRequest& WithArtifactType(Aws::String&& value) { SetArtifactType(std::move(value)); return *this;}
156 
160  inline CreateArtifactRequest& WithArtifactType(const char* value) { SetArtifactType(value); return *this;}
161 
162 
166  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
167 
171  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
172 
176  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
177 
181  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
182 
186  inline CreateArtifactRequest& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
187 
191  inline CreateArtifactRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
192 
196  inline CreateArtifactRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
197 
201  inline CreateArtifactRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
202 
206  inline CreateArtifactRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
207 
211  inline CreateArtifactRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
212 
216  inline CreateArtifactRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
217 
221  inline CreateArtifactRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
222 
226  inline CreateArtifactRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
227 
228 
229 
230  inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; }
231 
232 
233  inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
234 
235 
236  inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; }
237 
238 
239  inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); }
240 
241 
242  inline CreateArtifactRequest& WithMetadataProperties(const MetadataProperties& value) { SetMetadataProperties(value); return *this;}
243 
244 
245  inline CreateArtifactRequest& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;}
246 
247 
251  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
252 
256  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
257 
261  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
262 
266  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
267 
271  inline CreateArtifactRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
272 
276  inline CreateArtifactRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
277 
281  inline CreateArtifactRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
282 
286  inline CreateArtifactRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
287 
288  private:
289 
290  Aws::String m_artifactName;
291  bool m_artifactNameHasBeenSet;
292 
293  ArtifactSource m_source;
294  bool m_sourceHasBeenSet;
295 
296  Aws::String m_artifactType;
297  bool m_artifactTypeHasBeenSet;
298 
300  bool m_propertiesHasBeenSet;
301 
302  MetadataProperties m_metadataProperties;
303  bool m_metadataPropertiesHasBeenSet;
304 
305  Aws::Vector<Tag> m_tags;
306  bool m_tagsHasBeenSet;
307  };
308 
309 } // namespace Model
310 } // namespace SageMaker
311 } // namespace Aws
Aws::SageMaker::Model::CreateArtifactRequest::AddTags
CreateArtifactRequest & AddTags(Tag &&value)
Definition: CreateArtifactRequest.h:286
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateArtifactRequest::WithProperties
CreateArtifactRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateArtifactRequest.h:186
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateArtifactRequest::WithProperties
CreateArtifactRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateArtifactRequest.h:191
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateArtifactRequest::AddProperties
CreateArtifactRequest & AddProperties(const char *key, Aws::String &&value)
Definition: CreateArtifactRequest.h:216
Aws::SageMaker::Model::CreateArtifactRequest::WithArtifactType
CreateArtifactRequest & WithArtifactType(Aws::String &&value)
Definition: CreateArtifactRequest.h:155
Aws::SageMaker::Model::CreateArtifactRequest::SetArtifactName
void SetArtifactName(Aws::String &&value)
Definition: CreateArtifactRequest.h:64
Aws::SageMaker::Model::CreateArtifactRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateArtifactRequest.h:251
Aws::SageMaker::Model::CreateArtifactRequest::SetArtifactName
void SetArtifactName(const char *value)
Definition: CreateArtifactRequest.h:70
Aws::SageMaker::Model::CreateArtifactRequest::SetProperties
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateArtifactRequest.h:176
Aws::SageMaker::Model::CreateArtifactRequest::SetMetadataProperties
void SetMetadataProperties(MetadataProperties &&value)
Definition: CreateArtifactRequest.h:239
Aws::SageMaker::Model::CreateArtifactRequest::SetArtifactName
void SetArtifactName(const Aws::String &value)
Definition: CreateArtifactRequest.h:58
Aws::SageMaker::Model::CreateArtifactRequest::GetMetadataProperties
const MetadataProperties & GetMetadataProperties() const
Definition: CreateArtifactRequest.h:230
Aws::SageMaker::Model::CreateArtifactRequest::ArtifactTypeHasBeenSet
bool ArtifactTypeHasBeenSet() const
Definition: CreateArtifactRequest.h:130
ArtifactSource.h
Aws::SageMaker::Model::CreateArtifactRequest::AddProperties
CreateArtifactRequest & AddProperties(Aws::String &&key, Aws::String &&value)
Definition: CreateArtifactRequest.h:211
Aws::SageMaker::Model::CreateArtifactRequest::SetSource
void SetSource(ArtifactSource &&value)
Definition: CreateArtifactRequest.h:109
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::CreateArtifactRequest
Definition: CreateArtifactRequest.h:27
Aws::SageMaker::Model::CreateArtifactRequest::GetSource
const ArtifactSource & GetSource() const
Definition: CreateArtifactRequest.h:94
Aws::SageMaker::Model::CreateArtifactRequest::AddProperties
CreateArtifactRequest & AddProperties(const Aws::String &key, const Aws::String &value)
Definition: CreateArtifactRequest.h:196
Aws::SageMaker::Model::CreateArtifactRequest::AddProperties
CreateArtifactRequest & AddProperties(Aws::String &&key, const Aws::String &value)
Definition: CreateArtifactRequest.h:201
Aws::SageMaker::Model::CreateArtifactRequest::ArtifactNameHasBeenSet
bool ArtifactNameHasBeenSet() const
Definition: CreateArtifactRequest.h:52
Aws::SageMaker::Model::CreateArtifactRequest::WithArtifactType
CreateArtifactRequest & WithArtifactType(const char *value)
Definition: CreateArtifactRequest.h:160
AWSVector.h
Aws::SageMaker::Model::CreateArtifactRequest::SetProperties
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateArtifactRequest.h:181
Aws::SageMaker::Model::CreateArtifactRequest::WithTags
CreateArtifactRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateArtifactRequest.h:271
Aws::SageMaker::Model::CreateArtifactRequest::WithArtifactName
CreateArtifactRequest & WithArtifactName(Aws::String &&value)
Definition: CreateArtifactRequest.h:82
Aws::SageMaker::Model::CreateArtifactRequest::GetProperties
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition: CreateArtifactRequest.h:166
Aws::SageMaker::Model::CreateArtifactRequest::WithTags
CreateArtifactRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateArtifactRequest.h:276
Aws::SageMaker::Model::CreateArtifactRequest::AddTags
CreateArtifactRequest & AddTags(const Tag &value)
Definition: CreateArtifactRequest.h:281
Aws::SageMaker::Model::CreateArtifactRequest::WithArtifactType
CreateArtifactRequest & WithArtifactType(const Aws::String &value)
Definition: CreateArtifactRequest.h:150
Aws::SageMaker::Model::CreateArtifactRequest::WithArtifactName
CreateArtifactRequest & WithArtifactName(const char *value)
Definition: CreateArtifactRequest.h:88
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateArtifactRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: CreateArtifactRequest.h:171
Aws::SageMaker::Model::CreateArtifactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::CreateArtifactRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: CreateArtifactRequest.h:99
Aws::SageMaker::Model::CreateArtifactRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateArtifactRequest.h:261
Aws::SageMaker::Model::MetadataProperties
Definition: MetadataProperties.h:33
Aws::SageMaker::Model::CreateArtifactRequest::SetArtifactType
void SetArtifactType(Aws::String &&value)
Definition: CreateArtifactRequest.h:140
Aws::SageMaker::Model::CreateArtifactRequest::WithMetadataProperties
CreateArtifactRequest & WithMetadataProperties(MetadataProperties &&value)
Definition: CreateArtifactRequest.h:245
Aws::SageMaker::Model::CreateArtifactRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateArtifactRequest.h:266
Aws::SageMaker::Model::ArtifactSource
Definition: ArtifactSource.h:35
AWSString.h
Aws::SageMaker::Model::CreateArtifactRequest::MetadataPropertiesHasBeenSet
bool MetadataPropertiesHasBeenSet() const
Definition: CreateArtifactRequest.h:233
Tag.h
Aws::SageMaker::Model::CreateArtifactRequest::AddProperties
CreateArtifactRequest & AddProperties(const Aws::String &key, Aws::String &&value)
Definition: CreateArtifactRequest.h:206
Aws::SageMaker::Model::CreateArtifactRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::CreateArtifactRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateArtifactRequest.h:256
Aws::SageMaker::Model::CreateArtifactRequest::WithMetadataProperties
CreateArtifactRequest & WithMetadataProperties(const MetadataProperties &value)
Definition: CreateArtifactRequest.h:242
Aws::SageMaker::Model::CreateArtifactRequest::GetArtifactType
const Aws::String & GetArtifactType() const
Definition: CreateArtifactRequest.h:125
Aws::SageMaker::Model::CreateArtifactRequest::SetArtifactType
void SetArtifactType(const Aws::String &value)
Definition: CreateArtifactRequest.h:135
Aws::SageMaker::Model::CreateArtifactRequest::WithArtifactName
CreateArtifactRequest & WithArtifactName(const Aws::String &value)
Definition: CreateArtifactRequest.h:76
Aws::SageMaker::Model::CreateArtifactRequest::SetSource
void SetSource(const ArtifactSource &value)
Definition: CreateArtifactRequest.h:104
Aws::SageMaker::Model::CreateArtifactRequest::SetMetadataProperties
void SetMetadataProperties(const MetadataProperties &value)
Definition: CreateArtifactRequest.h:236
Aws
Definition: AccessManagementClient.h:15
MetadataProperties.h
SageMakerRequest.h
Aws::SageMaker::Model::CreateArtifactRequest::AddProperties
CreateArtifactRequest & AddProperties(Aws::String &&key, const char *value)
Definition: CreateArtifactRequest.h:221
Aws::SageMaker::Model::CreateArtifactRequest::CreateArtifactRequest
CreateArtifactRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateArtifactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateArtifactRequest.h:35
Aws::SageMaker::Model::CreateArtifactRequest::WithSource
CreateArtifactRequest & WithSource(ArtifactSource &&value)
Definition: CreateArtifactRequest.h:119
Aws::SageMaker::Model::CreateArtifactRequest::AddProperties
CreateArtifactRequest & AddProperties(const char *key, const char *value)
Definition: CreateArtifactRequest.h:226
AWSMap.h
Aws::SageMaker::Model::CreateArtifactRequest::WithSource
CreateArtifactRequest & WithSource(const ArtifactSource &value)
Definition: CreateArtifactRequest.h:114
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SageMaker::Model::CreateArtifactRequest::GetArtifactName
const Aws::String & GetArtifactName() const
Definition: CreateArtifactRequest.h:46
Aws::SageMaker::Model::CreateArtifactRequest::SetArtifactType
void SetArtifactType(const char *value)
Definition: CreateArtifactRequest.h:145