AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateArtifactRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/ArtifactSource.h>
13#include <aws/sagemaker/model/MetadataProperties.h>
14#include <aws/sagemaker/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API CreateArtifactRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateArtifact"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
44 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
45 template <typename ArtifactNameT = Aws::String>
46 void SetArtifactName(ArtifactNameT&& value) {
47 m_artifactNameHasBeenSet = true;
48 m_artifactName = std::forward<ArtifactNameT>(value);
49 }
50 template <typename ArtifactNameT = Aws::String>
51 CreateArtifactRequest& WithArtifactName(ArtifactNameT&& value) {
52 SetArtifactName(std::forward<ArtifactNameT>(value));
53 return *this;
54 }
56
58
61 inline const ArtifactSource& GetSource() const { return m_source; }
62 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
63 template <typename SourceT = ArtifactSource>
64 void SetSource(SourceT&& value) {
65 m_sourceHasBeenSet = true;
66 m_source = std::forward<SourceT>(value);
67 }
68 template <typename SourceT = ArtifactSource>
70 SetSource(std::forward<SourceT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
80 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
81 template <typename ArtifactTypeT = Aws::String>
82 void SetArtifactType(ArtifactTypeT&& value) {
83 m_artifactTypeHasBeenSet = true;
84 m_artifactType = std::forward<ArtifactTypeT>(value);
85 }
86 template <typename ArtifactTypeT = Aws::String>
87 CreateArtifactRequest& WithArtifactType(ArtifactTypeT&& value) {
88 SetArtifactType(std::forward<ArtifactTypeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
98 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
99 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
100 void SetProperties(PropertiesT&& value) {
101 m_propertiesHasBeenSet = true;
102 m_properties = std::forward<PropertiesT>(value);
103 }
104 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
105 CreateArtifactRequest& WithProperties(PropertiesT&& value) {
106 SetProperties(std::forward<PropertiesT>(value));
107 return *this;
108 }
109 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
110 CreateArtifactRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
111 m_propertiesHasBeenSet = true;
112 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
113 return *this;
114 }
116
118
119 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
120 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
121 template <typename MetadataPropertiesT = MetadataProperties>
122 void SetMetadataProperties(MetadataPropertiesT&& value) {
123 m_metadataPropertiesHasBeenSet = true;
124 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
125 }
126 template <typename MetadataPropertiesT = MetadataProperties>
127 CreateArtifactRequest& WithMetadataProperties(MetadataPropertiesT&& value) {
128 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 template <typename TagsT = Aws::Vector<Tag>>
140 void SetTags(TagsT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags = std::forward<TagsT>(value);
143 }
144 template <typename TagsT = Aws::Vector<Tag>>
146 SetTags(std::forward<TagsT>(value));
147 return *this;
148 }
149 template <typename TagsT = Tag>
151 m_tagsHasBeenSet = true;
152 m_tags.emplace_back(std::forward<TagsT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_artifactName;
158
159 ArtifactSource m_source;
160
161 Aws::String m_artifactType;
162
164
165 MetadataProperties m_metadataProperties;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_artifactNameHasBeenSet = false;
169 bool m_sourceHasBeenSet = false;
170 bool m_artifactTypeHasBeenSet = false;
171 bool m_propertiesHasBeenSet = false;
172 bool m_metadataPropertiesHasBeenSet = false;
173 bool m_tagsHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace SageMaker
178} // namespace Aws
CreateArtifactRequest & WithProperties(PropertiesT &&value)
AWS_SAGEMAKER_API CreateArtifactRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
virtual const char * GetServiceRequestName() const override
CreateArtifactRequest & WithTags(TagsT &&value)
CreateArtifactRequest & WithArtifactType(ArtifactTypeT &&value)
CreateArtifactRequest & WithArtifactName(ArtifactNameT &&value)
CreateArtifactRequest & AddTags(TagsT &&value)
CreateArtifactRequest & WithMetadataProperties(MetadataPropertiesT &&value)
CreateArtifactRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetMetadataProperties(MetadataPropertiesT &&value)
const MetadataProperties & GetMetadataProperties() const
CreateArtifactRequest & WithSource(SourceT &&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