AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateArtifactRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/ArtifactSource.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/sagemaker/model/MetadataProperties.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API CreateArtifactRequest();
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_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetArtifactName() const{ return m_artifactName; }
48 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
49 inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; }
50 inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); }
51 inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); }
52 inline CreateArtifactRequest& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;}
53 inline CreateArtifactRequest& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;}
54 inline CreateArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;}
56
58
61 inline const ArtifactSource& GetSource() const{ return m_source; }
62 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
63 inline void SetSource(const ArtifactSource& value) { m_sourceHasBeenSet = true; m_source = value; }
64 inline void SetSource(ArtifactSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
65 inline CreateArtifactRequest& WithSource(const ArtifactSource& value) { SetSource(value); return *this;}
66 inline CreateArtifactRequest& WithSource(ArtifactSource&& value) { SetSource(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetArtifactType() const{ return m_artifactType; }
74 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
75 inline void SetArtifactType(const Aws::String& value) { m_artifactTypeHasBeenSet = true; m_artifactType = value; }
76 inline void SetArtifactType(Aws::String&& value) { m_artifactTypeHasBeenSet = true; m_artifactType = std::move(value); }
77 inline void SetArtifactType(const char* value) { m_artifactTypeHasBeenSet = true; m_artifactType.assign(value); }
78 inline CreateArtifactRequest& WithArtifactType(const Aws::String& value) { SetArtifactType(value); return *this;}
79 inline CreateArtifactRequest& WithArtifactType(Aws::String&& value) { SetArtifactType(std::move(value)); return *this;}
80 inline CreateArtifactRequest& WithArtifactType(const char* value) { SetArtifactType(value); return *this;}
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
88 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
89 inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
90 inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
92 inline CreateArtifactRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
93 inline CreateArtifactRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
94 inline CreateArtifactRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
95 inline CreateArtifactRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
96 inline CreateArtifactRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
97 inline CreateArtifactRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
98 inline CreateArtifactRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
99 inline CreateArtifactRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
101
103
104 inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; }
105 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
106 inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; }
107 inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); }
111
113
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateArtifactRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CreateArtifactRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateArtifactRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CreateArtifactRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_artifactName;
128 bool m_artifactNameHasBeenSet = false;
129
130 ArtifactSource m_source;
131 bool m_sourceHasBeenSet = false;
132
133 Aws::String m_artifactType;
134 bool m_artifactTypeHasBeenSet = false;
135
137 bool m_propertiesHasBeenSet = false;
138
139 MetadataProperties m_metadataProperties;
140 bool m_metadataPropertiesHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SageMaker
148} // namespace Aws
CreateArtifactRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
CreateArtifactRequest & WithTags(Aws::Vector< Tag > &&value)
CreateArtifactRequest & WithMetadataProperties(const MetadataProperties &value)
CreateArtifactRequest & WithTags(const Aws::Vector< Tag > &value)
CreateArtifactRequest & WithMetadataProperties(MetadataProperties &&value)
CreateArtifactRequest & WithSource(const ArtifactSource &value)
CreateArtifactRequest & AddTags(const Tag &value)
CreateArtifactRequest & WithArtifactType(const Aws::String &value)
void SetMetadataProperties(MetadataProperties &&value)
CreateArtifactRequest & AddProperties(const Aws::String &key, const Aws::String &value)
void SetMetadataProperties(const MetadataProperties &value)
CreateArtifactRequest & WithArtifactName(const char *value)
CreateArtifactRequest & AddProperties(Aws::String &&key, Aws::String &&value)
CreateArtifactRequest & WithArtifactType(Aws::String &&value)
CreateArtifactRequest & AddProperties(const char *key, const char *value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
CreateArtifactRequest & WithArtifactType(const char *value)
virtual const char * GetServiceRequestName() const override
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
CreateArtifactRequest & AddTags(Tag &&value)
CreateArtifactRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
CreateArtifactRequest & WithArtifactName(const Aws::String &value)
CreateArtifactRequest & AddProperties(Aws::String &&key, const Aws::String &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateArtifactRequest & AddProperties(const char *key, Aws::String &&value)
const MetadataProperties & GetMetadataProperties() const
CreateArtifactRequest & WithArtifactName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateArtifactRequest & AddProperties(Aws::String &&key, const char *value)
void SetSource(const ArtifactSource &value)
CreateArtifactRequest & AddProperties(const Aws::String &key, Aws::String &&value)
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
CreateArtifactRequest & WithSource(ArtifactSource &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector