AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ArtifactNameT = Aws::String>
50 void SetArtifactName(ArtifactNameT&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::forward<ArtifactNameT>(value); }
51 template<typename ArtifactNameT = Aws::String>
52 CreateArtifactRequest& WithArtifactName(ArtifactNameT&& value) { SetArtifactName(std::forward<ArtifactNameT>(value)); return *this;}
54
56
59 inline const ArtifactSource& GetSource() const { return m_source; }
60 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
61 template<typename SourceT = ArtifactSource>
62 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
63 template<typename SourceT = ArtifactSource>
64 CreateArtifactRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
66
68
71 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
72 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
73 template<typename ArtifactTypeT = Aws::String>
74 void SetArtifactType(ArtifactTypeT&& value) { m_artifactTypeHasBeenSet = true; m_artifactType = std::forward<ArtifactTypeT>(value); }
75 template<typename ArtifactTypeT = Aws::String>
76 CreateArtifactRequest& WithArtifactType(ArtifactTypeT&& value) { SetArtifactType(std::forward<ArtifactTypeT>(value)); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
84 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
85 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
86 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
87 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
88 CreateArtifactRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
89 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
90 CreateArtifactRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
91 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
92 }
94
96
97 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
98 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
99 template<typename MetadataPropertiesT = MetadataProperties>
100 void SetMetadataProperties(MetadataPropertiesT&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::forward<MetadataPropertiesT>(value); }
101 template<typename MetadataPropertiesT = MetadataProperties>
102 CreateArtifactRequest& WithMetadataProperties(MetadataPropertiesT&& value) { SetMetadataProperties(std::forward<MetadataPropertiesT>(value)); return *this;}
104
106
109 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Vector<Tag>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Vector<Tag>>
114 CreateArtifactRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsT = Tag>
116 CreateArtifactRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
118 private:
119
120 Aws::String m_artifactName;
121 bool m_artifactNameHasBeenSet = false;
122
123 ArtifactSource m_source;
124 bool m_sourceHasBeenSet = false;
125
126 Aws::String m_artifactType;
127 bool m_artifactTypeHasBeenSet = false;
128
130 bool m_propertiesHasBeenSet = false;
131
132 MetadataProperties m_metadataProperties;
133 bool m_metadataPropertiesHasBeenSet = false;
134
135 Aws::Vector<Tag> m_tags;
136 bool m_tagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SageMaker
141} // 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