AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeContextResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/ContextSource.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 DescribeContextResult() = default;
33
35
38 inline const Aws::String& GetContextName() const { return m_contextName; }
39 template <typename ContextNameT = Aws::String>
40 void SetContextName(ContextNameT&& value) {
41 m_contextNameHasBeenSet = true;
42 m_contextName = std::forward<ContextNameT>(value);
43 }
44 template <typename ContextNameT = Aws::String>
45 DescribeContextResult& WithContextName(ContextNameT&& value) {
46 SetContextName(std::forward<ContextNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetContextArn() const { return m_contextArn; }
56 template <typename ContextArnT = Aws::String>
57 void SetContextArn(ContextArnT&& value) {
58 m_contextArnHasBeenSet = true;
59 m_contextArn = std::forward<ContextArnT>(value);
60 }
61 template <typename ContextArnT = Aws::String>
62 DescribeContextResult& WithContextArn(ContextArnT&& value) {
63 SetContextArn(std::forward<ContextArnT>(value));
64 return *this;
65 }
67
69
72 inline const ContextSource& GetSource() const { return m_source; }
73 template <typename SourceT = ContextSource>
74 void SetSource(SourceT&& value) {
75 m_sourceHasBeenSet = true;
76 m_source = std::forward<SourceT>(value);
77 }
78 template <typename SourceT = ContextSource>
80 SetSource(std::forward<SourceT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetContextType() const { return m_contextType; }
90 template <typename ContextTypeT = Aws::String>
91 void SetContextType(ContextTypeT&& value) {
92 m_contextTypeHasBeenSet = true;
93 m_contextType = std::forward<ContextTypeT>(value);
94 }
95 template <typename ContextTypeT = Aws::String>
96 DescribeContextResult& WithContextType(ContextTypeT&& value) {
97 SetContextType(std::forward<ContextTypeT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetDescription() const { return m_description; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
113 DescribeContextResult& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
124 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
125 void SetProperties(PropertiesT&& value) {
126 m_propertiesHasBeenSet = true;
127 m_properties = std::forward<PropertiesT>(value);
128 }
129 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
130 DescribeContextResult& WithProperties(PropertiesT&& value) {
131 SetProperties(std::forward<PropertiesT>(value));
132 return *this;
133 }
134 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
135 DescribeContextResult& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
136 m_propertiesHasBeenSet = true;
137 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
147 template <typename CreationTimeT = Aws::Utils::DateTime>
148 void SetCreationTime(CreationTimeT&& value) {
149 m_creationTimeHasBeenSet = true;
150 m_creationTime = std::forward<CreationTimeT>(value);
151 }
152 template <typename CreationTimeT = Aws::Utils::DateTime>
153 DescribeContextResult& WithCreationTime(CreationTimeT&& value) {
154 SetCreationTime(std::forward<CreationTimeT>(value));
155 return *this;
156 }
158
160
161 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
162 template <typename CreatedByT = UserContext>
163 void SetCreatedBy(CreatedByT&& value) {
164 m_createdByHasBeenSet = true;
165 m_createdBy = std::forward<CreatedByT>(value);
166 }
167 template <typename CreatedByT = UserContext>
169 SetCreatedBy(std::forward<CreatedByT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
179 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
180 void SetLastModifiedTime(LastModifiedTimeT&& value) {
181 m_lastModifiedTimeHasBeenSet = true;
182 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
183 }
184 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
185 DescribeContextResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
186 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
187 return *this;
188 }
190
192
193 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
194 template <typename LastModifiedByT = UserContext>
195 void SetLastModifiedBy(LastModifiedByT&& value) {
196 m_lastModifiedByHasBeenSet = true;
197 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
198 }
199 template <typename LastModifiedByT = UserContext>
200 DescribeContextResult& WithLastModifiedBy(LastModifiedByT&& value) {
201 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
211 template <typename LineageGroupArnT = Aws::String>
212 void SetLineageGroupArn(LineageGroupArnT&& value) {
213 m_lineageGroupArnHasBeenSet = true;
214 m_lineageGroupArn = std::forward<LineageGroupArnT>(value);
215 }
216 template <typename LineageGroupArnT = Aws::String>
217 DescribeContextResult& WithLineageGroupArn(LineageGroupArnT&& value) {
218 SetLineageGroupArn(std::forward<LineageGroupArnT>(value));
219 return *this;
220 }
222
224
225 inline const Aws::String& GetRequestId() const { return m_requestId; }
226 template <typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) {
228 m_requestIdHasBeenSet = true;
229 m_requestId = std::forward<RequestIdT>(value);
230 }
231 template <typename RequestIdT = Aws::String>
233 SetRequestId(std::forward<RequestIdT>(value));
234 return *this;
235 }
237 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
238
239 private:
240 Aws::String m_contextName;
241
242 Aws::String m_contextArn;
243
244 ContextSource m_source;
245
246 Aws::String m_contextType;
247
248 Aws::String m_description;
249
251
252 Aws::Utils::DateTime m_creationTime{};
253
254 UserContext m_createdBy;
255
256 Aws::Utils::DateTime m_lastModifiedTime{};
257
258 UserContext m_lastModifiedBy;
259
260 Aws::String m_lineageGroupArn;
261
262 Aws::String m_requestId;
263 Aws::Http::HttpResponseCode m_HttpResponseCode;
264 bool m_contextNameHasBeenSet = false;
265 bool m_contextArnHasBeenSet = false;
266 bool m_sourceHasBeenSet = false;
267 bool m_contextTypeHasBeenSet = false;
268 bool m_descriptionHasBeenSet = false;
269 bool m_propertiesHasBeenSet = false;
270 bool m_creationTimeHasBeenSet = false;
271 bool m_createdByHasBeenSet = false;
272 bool m_lastModifiedTimeHasBeenSet = false;
273 bool m_lastModifiedByHasBeenSet = false;
274 bool m_lineageGroupArnHasBeenSet = false;
275 bool m_requestIdHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace SageMaker
280} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
DescribeContextResult & WithRequestId(RequestIdT &&value)
DescribeContextResult & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeContextResult & WithLineageGroupArn(LineageGroupArnT &&value)
DescribeContextResult & WithContextName(ContextNameT &&value)
AWS_SAGEMAKER_API DescribeContextResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastModifiedTime(LastModifiedTimeT &&value)
DescribeContextResult & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API DescribeContextResult()=default
AWS_SAGEMAKER_API DescribeContextResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeContextResult & WithContextArn(ContextArnT &&value)
DescribeContextResult & WithDescription(DescriptionT &&value)
DescribeContextResult & WithSource(SourceT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeContextResult & WithProperties(PropertiesT &&value)
DescribeContextResult & WithCreatedBy(CreatedByT &&value)
DescribeContextResult & WithLastModifiedBy(LastModifiedByT &&value)
DescribeContextResult & WithContextType(ContextTypeT &&value)
DescribeContextResult & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&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