AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeContextResult.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ContextSource.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sagemaker/model/UserContext.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker
28{
29namespace Model
30{
32 {
33 public:
34 AWS_SAGEMAKER_API DescribeContextResult() = default;
37
38
40
43 inline const Aws::String& GetContextName() const { return m_contextName; }
44 template<typename ContextNameT = Aws::String>
45 void SetContextName(ContextNameT&& value) { m_contextNameHasBeenSet = true; m_contextName = std::forward<ContextNameT>(value); }
46 template<typename ContextNameT = Aws::String>
47 DescribeContextResult& WithContextName(ContextNameT&& value) { SetContextName(std::forward<ContextNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetContextArn() const { return m_contextArn; }
55 template<typename ContextArnT = Aws::String>
56 void SetContextArn(ContextArnT&& value) { m_contextArnHasBeenSet = true; m_contextArn = std::forward<ContextArnT>(value); }
57 template<typename ContextArnT = Aws::String>
58 DescribeContextResult& WithContextArn(ContextArnT&& value) { SetContextArn(std::forward<ContextArnT>(value)); return *this;}
60
62
65 inline const ContextSource& GetSource() const { return m_source; }
66 template<typename SourceT = ContextSource>
67 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
68 template<typename SourceT = ContextSource>
69 DescribeContextResult& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
71
73
76 inline const Aws::String& GetContextType() const { return m_contextType; }
77 template<typename ContextTypeT = Aws::String>
78 void SetContextType(ContextTypeT&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::forward<ContextTypeT>(value); }
79 template<typename ContextTypeT = Aws::String>
80 DescribeContextResult& WithContextType(ContextTypeT&& value) { SetContextType(std::forward<ContextTypeT>(value)); return *this;}
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 template<typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
90 template<typename DescriptionT = Aws::String>
91 DescribeContextResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
99 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
100 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
101 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
102 DescribeContextResult& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
103 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
104 DescribeContextResult& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
105 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
114 template<typename CreationTimeT = Aws::Utils::DateTime>
115 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
116 template<typename CreationTimeT = Aws::Utils::DateTime>
117 DescribeContextResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
119
121
122 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
123 template<typename CreatedByT = UserContext>
124 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
125 template<typename CreatedByT = UserContext>
126 DescribeContextResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
134 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
135 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
136 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
137 DescribeContextResult& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
139
141
142 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
143 template<typename LastModifiedByT = UserContext>
144 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
145 template<typename LastModifiedByT = UserContext>
146 DescribeContextResult& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
148
150
153 inline const Aws::String& GetLineageGroupArn() const { return m_lineageGroupArn; }
154 template<typename LineageGroupArnT = Aws::String>
155 void SetLineageGroupArn(LineageGroupArnT&& value) { m_lineageGroupArnHasBeenSet = true; m_lineageGroupArn = std::forward<LineageGroupArnT>(value); }
156 template<typename LineageGroupArnT = Aws::String>
157 DescribeContextResult& WithLineageGroupArn(LineageGroupArnT&& value) { SetLineageGroupArn(std::forward<LineageGroupArnT>(value)); return *this;}
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template<typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
165 template<typename RequestIdT = Aws::String>
166 DescribeContextResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
168 private:
169
170 Aws::String m_contextName;
171 bool m_contextNameHasBeenSet = false;
172
173 Aws::String m_contextArn;
174 bool m_contextArnHasBeenSet = false;
175
176 ContextSource m_source;
177 bool m_sourceHasBeenSet = false;
178
179 Aws::String m_contextType;
180 bool m_contextTypeHasBeenSet = false;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
186 bool m_propertiesHasBeenSet = false;
187
188 Aws::Utils::DateTime m_creationTime{};
189 bool m_creationTimeHasBeenSet = false;
190
191 UserContext m_createdBy;
192 bool m_createdByHasBeenSet = false;
193
194 Aws::Utils::DateTime m_lastModifiedTime{};
195 bool m_lastModifiedTimeHasBeenSet = false;
196
197 UserContext m_lastModifiedBy;
198 bool m_lastModifiedByHasBeenSet = false;
199
200 Aws::String m_lineageGroupArn;
201 bool m_lineageGroupArnHasBeenSet = false;
202
203 Aws::String m_requestId;
204 bool m_requestIdHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace SageMaker
209} // 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