AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeArtifactResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ArtifactSource.h>
12#include <aws/sagemaker/model/MetadataProperties.h>
13#include <aws/sagemaker/model/UserContext.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
29 public:
30 AWS_SAGEMAKER_API DescribeArtifactResult() = default;
33
35
38 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
39 template <typename ArtifactNameT = Aws::String>
40 void SetArtifactName(ArtifactNameT&& value) {
41 m_artifactNameHasBeenSet = true;
42 m_artifactName = std::forward<ArtifactNameT>(value);
43 }
44 template <typename ArtifactNameT = Aws::String>
45 DescribeArtifactResult& WithArtifactName(ArtifactNameT&& value) {
46 SetArtifactName(std::forward<ArtifactNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetArtifactArn() const { return m_artifactArn; }
56 template <typename ArtifactArnT = Aws::String>
57 void SetArtifactArn(ArtifactArnT&& value) {
58 m_artifactArnHasBeenSet = true;
59 m_artifactArn = std::forward<ArtifactArnT>(value);
60 }
61 template <typename ArtifactArnT = Aws::String>
62 DescribeArtifactResult& WithArtifactArn(ArtifactArnT&& value) {
63 SetArtifactArn(std::forward<ArtifactArnT>(value));
64 return *this;
65 }
67
69
72 inline const ArtifactSource& GetSource() const { return m_source; }
73 template <typename SourceT = ArtifactSource>
74 void SetSource(SourceT&& value) {
75 m_sourceHasBeenSet = true;
76 m_source = std::forward<SourceT>(value);
77 }
78 template <typename SourceT = ArtifactSource>
80 SetSource(std::forward<SourceT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
90 template <typename ArtifactTypeT = Aws::String>
91 void SetArtifactType(ArtifactTypeT&& value) {
92 m_artifactTypeHasBeenSet = true;
93 m_artifactType = std::forward<ArtifactTypeT>(value);
94 }
95 template <typename ArtifactTypeT = Aws::String>
96 DescribeArtifactResult& WithArtifactType(ArtifactTypeT&& value) {
97 SetArtifactType(std::forward<ArtifactTypeT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
107 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
108 void SetProperties(PropertiesT&& value) {
109 m_propertiesHasBeenSet = true;
110 m_properties = std::forward<PropertiesT>(value);
111 }
112 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
114 SetProperties(std::forward<PropertiesT>(value));
115 return *this;
116 }
117 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
118 DescribeArtifactResult& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
119 m_propertiesHasBeenSet = true;
120 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
130 template <typename CreationTimeT = Aws::Utils::DateTime>
131 void SetCreationTime(CreationTimeT&& value) {
132 m_creationTimeHasBeenSet = true;
133 m_creationTime = std::forward<CreationTimeT>(value);
134 }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
136 DescribeArtifactResult& WithCreationTime(CreationTimeT&& value) {
137 SetCreationTime(std::forward<CreationTimeT>(value));
138 return *this;
139 }
141
143
144 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
145 template <typename CreatedByT = UserContext>
146 void SetCreatedBy(CreatedByT&& value) {
147 m_createdByHasBeenSet = true;
148 m_createdBy = std::forward<CreatedByT>(value);
149 }
150 template <typename CreatedByT = UserContext>
152 SetCreatedBy(std::forward<CreatedByT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
162 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
163 void SetLastModifiedTime(LastModifiedTimeT&& value) {
164 m_lastModifiedTimeHasBeenSet = true;
165 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
166 }
167 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
168 DescribeArtifactResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
169 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
170 return *this;
171 }
173
175
176 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
177 template <typename LastModifiedByT = UserContext>
178 void SetLastModifiedBy(LastModifiedByT&& value) {
179 m_lastModifiedByHasBeenSet = true;
180 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
181 }
182 template <typename LastModifiedByT = UserContext>
183 DescribeArtifactResult& WithLastModifiedBy(LastModifiedByT&& value) {
184 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
185 return *this;
186 }
188
190
191 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
192 template <typename MetadataPropertiesT = MetadataProperties>
193 void SetMetadataProperties(MetadataPropertiesT&& value) {
194 m_metadataPropertiesHasBeenSet = true;
195 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
196 }
197 template <typename MetadataPropertiesT = MetadataProperties>
198 DescribeArtifactResult& WithMetadataProperties(MetadataPropertiesT&& value) {
199 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
209 template <typename LineageGroupArnT = Aws::String>
210 void SetLineageGroupArn(LineageGroupArnT&& value) {
211 m_lineageGroupArnHasBeenSet = true;
212 m_lineageGroupArn = std::forward<LineageGroupArnT>(value);
213 }
214 template <typename LineageGroupArnT = Aws::String>
215 DescribeArtifactResult& WithLineageGroupArn(LineageGroupArnT&& value) {
216 SetLineageGroupArn(std::forward<LineageGroupArnT>(value));
217 return *this;
218 }
220
222
223 inline const Aws::String& GetRequestId() const { return m_requestId; }
224 template <typename RequestIdT = Aws::String>
225 void SetRequestId(RequestIdT&& value) {
226 m_requestIdHasBeenSet = true;
227 m_requestId = std::forward<RequestIdT>(value);
228 }
229 template <typename RequestIdT = Aws::String>
231 SetRequestId(std::forward<RequestIdT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_artifactName;
237
238 Aws::String m_artifactArn;
239
240 ArtifactSource m_source;
241
242 Aws::String m_artifactType;
243
245
246 Aws::Utils::DateTime m_creationTime{};
247
248 UserContext m_createdBy;
249
250 Aws::Utils::DateTime m_lastModifiedTime{};
251
252 UserContext m_lastModifiedBy;
253
254 MetadataProperties m_metadataProperties;
255
256 Aws::String m_lineageGroupArn;
257
258 Aws::String m_requestId;
259 bool m_artifactNameHasBeenSet = false;
260 bool m_artifactArnHasBeenSet = false;
261 bool m_sourceHasBeenSet = false;
262 bool m_artifactTypeHasBeenSet = false;
263 bool m_propertiesHasBeenSet = false;
264 bool m_creationTimeHasBeenSet = false;
265 bool m_createdByHasBeenSet = false;
266 bool m_lastModifiedTimeHasBeenSet = false;
267 bool m_lastModifiedByHasBeenSet = false;
268 bool m_metadataPropertiesHasBeenSet = false;
269 bool m_lineageGroupArnHasBeenSet = false;
270 bool m_requestIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace SageMaker
275} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
AWS_SAGEMAKER_API DescribeArtifactResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArtifactResult & WithLastModifiedBy(LastModifiedByT &&value)
DescribeArtifactResult & WithMetadataProperties(MetadataPropertiesT &&value)
DescribeArtifactResult & WithCreatedBy(CreatedByT &&value)
DescribeArtifactResult & WithLineageGroupArn(LineageGroupArnT &&value)
DescribeArtifactResult & WithArtifactArn(ArtifactArnT &&value)
DescribeArtifactResult & WithArtifactType(ArtifactTypeT &&value)
DescribeArtifactResult & WithRequestId(RequestIdT &&value)
AWS_SAGEMAKER_API DescribeArtifactResult()=default
DescribeArtifactResult & WithArtifactName(ArtifactNameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DescribeArtifactResult & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeArtifactResult & WithSource(SourceT &&value)
AWS_SAGEMAKER_API DescribeArtifactResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeArtifactResult & WithProperties(PropertiesT &&value)
DescribeArtifactResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeArtifactResult & WithCreationTime(CreationTimeT &&value)
const MetadataProperties & GetMetadataProperties() const
void SetMetadataProperties(MetadataPropertiesT &&value)
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
Aws::Utils::Json::JsonValue JsonValue