AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeContextResult.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/ContextSource.h>
12#include <aws/sagemaker/model/UserContext.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker {
26namespace Model {
28 public:
29 AWS_SAGEMAKER_API DescribeContextResult() = default;
32
34
37 inline const Aws::String& GetContextName() const { return m_contextName; }
38 template <typename ContextNameT = Aws::String>
39 void SetContextName(ContextNameT&& value) {
40 m_contextNameHasBeenSet = true;
41 m_contextName = std::forward<ContextNameT>(value);
42 }
43 template <typename ContextNameT = Aws::String>
44 DescribeContextResult& WithContextName(ContextNameT&& value) {
45 SetContextName(std::forward<ContextNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetContextArn() const { return m_contextArn; }
55 template <typename ContextArnT = Aws::String>
56 void SetContextArn(ContextArnT&& value) {
57 m_contextArnHasBeenSet = true;
58 m_contextArn = std::forward<ContextArnT>(value);
59 }
60 template <typename ContextArnT = Aws::String>
61 DescribeContextResult& WithContextArn(ContextArnT&& value) {
62 SetContextArn(std::forward<ContextArnT>(value));
63 return *this;
64 }
66
68
71 inline const ContextSource& GetSource() const { return m_source; }
72 template <typename SourceT = ContextSource>
73 void SetSource(SourceT&& value) {
74 m_sourceHasBeenSet = true;
75 m_source = std::forward<SourceT>(value);
76 }
77 template <typename SourceT = ContextSource>
79 SetSource(std::forward<SourceT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetContextType() const { return m_contextType; }
89 template <typename ContextTypeT = Aws::String>
90 void SetContextType(ContextTypeT&& value) {
91 m_contextTypeHasBeenSet = true;
92 m_contextType = std::forward<ContextTypeT>(value);
93 }
94 template <typename ContextTypeT = Aws::String>
95 DescribeContextResult& WithContextType(ContextTypeT&& value) {
96 SetContextType(std::forward<ContextTypeT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
112 DescribeContextResult& WithDescription(DescriptionT&& value) {
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
123 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
124 void SetProperties(PropertiesT&& value) {
125 m_propertiesHasBeenSet = true;
126 m_properties = std::forward<PropertiesT>(value);
127 }
128 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
129 DescribeContextResult& WithProperties(PropertiesT&& value) {
130 SetProperties(std::forward<PropertiesT>(value));
131 return *this;
132 }
133 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
134 DescribeContextResult& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
135 m_propertiesHasBeenSet = true;
136 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
146 template <typename CreationTimeT = Aws::Utils::DateTime>
147 void SetCreationTime(CreationTimeT&& value) {
148 m_creationTimeHasBeenSet = true;
149 m_creationTime = std::forward<CreationTimeT>(value);
150 }
151 template <typename CreationTimeT = Aws::Utils::DateTime>
152 DescribeContextResult& WithCreationTime(CreationTimeT&& value) {
153 SetCreationTime(std::forward<CreationTimeT>(value));
154 return *this;
155 }
157
159
160 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
161 template <typename CreatedByT = UserContext>
162 void SetCreatedBy(CreatedByT&& value) {
163 m_createdByHasBeenSet = true;
164 m_createdBy = std::forward<CreatedByT>(value);
165 }
166 template <typename CreatedByT = UserContext>
168 SetCreatedBy(std::forward<CreatedByT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
178 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
179 void SetLastModifiedTime(LastModifiedTimeT&& value) {
180 m_lastModifiedTimeHasBeenSet = true;
181 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
182 }
183 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
184 DescribeContextResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
185 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
186 return *this;
187 }
189
191
192 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
193 template <typename LastModifiedByT = UserContext>
194 void SetLastModifiedBy(LastModifiedByT&& value) {
195 m_lastModifiedByHasBeenSet = true;
196 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
197 }
198 template <typename LastModifiedByT = UserContext>
199 DescribeContextResult& WithLastModifiedBy(LastModifiedByT&& value) {
200 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
210 template <typename LineageGroupArnT = Aws::String>
211 void SetLineageGroupArn(LineageGroupArnT&& value) {
212 m_lineageGroupArnHasBeenSet = true;
213 m_lineageGroupArn = std::forward<LineageGroupArnT>(value);
214 }
215 template <typename LineageGroupArnT = Aws::String>
216 DescribeContextResult& WithLineageGroupArn(LineageGroupArnT&& value) {
217 SetLineageGroupArn(std::forward<LineageGroupArnT>(value));
218 return *this;
219 }
221
223
224 inline const Aws::String& GetRequestId() const { return m_requestId; }
225 template <typename RequestIdT = Aws::String>
226 void SetRequestId(RequestIdT&& value) {
227 m_requestIdHasBeenSet = true;
228 m_requestId = std::forward<RequestIdT>(value);
229 }
230 template <typename RequestIdT = Aws::String>
232 SetRequestId(std::forward<RequestIdT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_contextName;
238
239 Aws::String m_contextArn;
240
241 ContextSource m_source;
242
243 Aws::String m_contextType;
244
245 Aws::String m_description;
246
248
249 Aws::Utils::DateTime m_creationTime{};
250
251 UserContext m_createdBy;
252
253 Aws::Utils::DateTime m_lastModifiedTime{};
254
255 UserContext m_lastModifiedBy;
256
257 Aws::String m_lineageGroupArn;
258
259 Aws::String m_requestId;
260 bool m_contextNameHasBeenSet = false;
261 bool m_contextArnHasBeenSet = false;
262 bool m_sourceHasBeenSet = false;
263 bool m_contextTypeHasBeenSet = false;
264 bool m_descriptionHasBeenSet = false;
265 bool m_propertiesHasBeenSet = false;
266 bool m_creationTimeHasBeenSet = false;
267 bool m_createdByHasBeenSet = false;
268 bool m_lastModifiedTimeHasBeenSet = false;
269 bool m_lastModifiedByHasBeenSet = false;
270 bool m_lineageGroupArnHasBeenSet = false;
271 bool m_requestIdHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace SageMaker
276} // 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
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