AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ContextSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ContextSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API ContextSummary() = default;
33 AWS_SAGEMAKER_API ContextSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetContextArn() const { return m_contextArn; }
42 inline bool ContextArnHasBeenSet() const { return m_contextArnHasBeenSet; }
43 template <typename ContextArnT = Aws::String>
44 void SetContextArn(ContextArnT&& value) {
45 m_contextArnHasBeenSet = true;
46 m_contextArn = std::forward<ContextArnT>(value);
47 }
48 template <typename ContextArnT = Aws::String>
49 ContextSummary& WithContextArn(ContextArnT&& value) {
50 SetContextArn(std::forward<ContextArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetContextName() const { return m_contextName; }
60 inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; }
61 template <typename ContextNameT = Aws::String>
62 void SetContextName(ContextNameT&& value) {
63 m_contextNameHasBeenSet = true;
64 m_contextName = std::forward<ContextNameT>(value);
65 }
66 template <typename ContextNameT = Aws::String>
67 ContextSummary& WithContextName(ContextNameT&& value) {
68 SetContextName(std::forward<ContextNameT>(value));
69 return *this;
70 }
72
74
77 inline const ContextSource& GetSource() const { return m_source; }
78 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
79 template <typename SourceT = ContextSource>
80 void SetSource(SourceT&& value) {
81 m_sourceHasBeenSet = true;
82 m_source = std::forward<SourceT>(value);
83 }
84 template <typename SourceT = ContextSource>
85 ContextSummary& WithSource(SourceT&& value) {
86 SetSource(std::forward<SourceT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetContextType() const { return m_contextType; }
96 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
97 template <typename ContextTypeT = Aws::String>
98 void SetContextType(ContextTypeT&& value) {
99 m_contextTypeHasBeenSet = true;
100 m_contextType = std::forward<ContextTypeT>(value);
101 }
102 template <typename ContextTypeT = Aws::String>
103 ContextSummary& WithContextType(ContextTypeT&& value) {
104 SetContextType(std::forward<ContextTypeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
114 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
115 template <typename CreationTimeT = Aws::Utils::DateTime>
116 void SetCreationTime(CreationTimeT&& value) {
117 m_creationTimeHasBeenSet = true;
118 m_creationTime = std::forward<CreationTimeT>(value);
119 }
120 template <typename CreationTimeT = Aws::Utils::DateTime>
121 ContextSummary& WithCreationTime(CreationTimeT&& value) {
122 SetCreationTime(std::forward<CreationTimeT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
132 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
133 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
134 void SetLastModifiedTime(LastModifiedTimeT&& value) {
135 m_lastModifiedTimeHasBeenSet = true;
136 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
137 }
138 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
139 ContextSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
140 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_contextArn;
146
147 Aws::String m_contextName;
148
149 ContextSource m_source;
150
151 Aws::String m_contextType;
152
153 Aws::Utils::DateTime m_creationTime{};
154
155 Aws::Utils::DateTime m_lastModifiedTime{};
156 bool m_contextArnHasBeenSet = false;
157 bool m_contextNameHasBeenSet = false;
158 bool m_sourceHasBeenSet = false;
159 bool m_contextTypeHasBeenSet = false;
160 bool m_creationTimeHasBeenSet = false;
161 bool m_lastModifiedTimeHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace SageMaker
166} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationTime() const
ContextSummary & WithSource(SourceT &&value)
void SetContextType(ContextTypeT &&value)
ContextSummary & WithContextName(ContextNameT &&value)
AWS_SAGEMAKER_API ContextSummary()=default
AWS_SAGEMAKER_API ContextSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContextArn(ContextArnT &&value)
void SetContextName(ContextNameT &&value)
const Aws::String & GetContextType() const
ContextSummary & WithContextArn(ContextArnT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
ContextSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetCreationTime(CreationTimeT &&value)
ContextSummary & WithContextType(ContextTypeT &&value)
const ContextSource & GetSource() const
const Aws::String & GetContextName() const
ContextSummary & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetContextArn() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_SAGEMAKER_API ContextSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue