AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ActionSummary.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/ActionSource.h>
11#include <aws/sagemaker/model/ActionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
34 public:
35 AWS_SAGEMAKER_API ActionSummary() = default;
36 AWS_SAGEMAKER_API ActionSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API ActionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetActionArn() const { return m_actionArn; }
45 inline bool ActionArnHasBeenSet() const { return m_actionArnHasBeenSet; }
46 template <typename ActionArnT = Aws::String>
47 void SetActionArn(ActionArnT&& value) {
48 m_actionArnHasBeenSet = true;
49 m_actionArn = std::forward<ActionArnT>(value);
50 }
51 template <typename ActionArnT = Aws::String>
52 ActionSummary& WithActionArn(ActionArnT&& value) {
53 SetActionArn(std::forward<ActionArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetActionName() const { return m_actionName; }
63 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
64 template <typename ActionNameT = Aws::String>
65 void SetActionName(ActionNameT&& value) {
66 m_actionNameHasBeenSet = true;
67 m_actionName = std::forward<ActionNameT>(value);
68 }
69 template <typename ActionNameT = Aws::String>
70 ActionSummary& WithActionName(ActionNameT&& value) {
71 SetActionName(std::forward<ActionNameT>(value));
72 return *this;
73 }
75
77
80 inline const ActionSource& GetSource() const { return m_source; }
81 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
82 template <typename SourceT = ActionSource>
83 void SetSource(SourceT&& value) {
84 m_sourceHasBeenSet = true;
85 m_source = std::forward<SourceT>(value);
86 }
87 template <typename SourceT = ActionSource>
88 ActionSummary& WithSource(SourceT&& value) {
89 SetSource(std::forward<SourceT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetActionType() const { return m_actionType; }
99 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
100 template <typename ActionTypeT = Aws::String>
101 void SetActionType(ActionTypeT&& value) {
102 m_actionTypeHasBeenSet = true;
103 m_actionType = std::forward<ActionTypeT>(value);
104 }
105 template <typename ActionTypeT = Aws::String>
106 ActionSummary& WithActionType(ActionTypeT&& value) {
107 SetActionType(std::forward<ActionTypeT>(value));
108 return *this;
109 }
111
113
116 inline ActionStatus GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(ActionStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
133 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
134 template <typename CreationTimeT = Aws::Utils::DateTime>
135 void SetCreationTime(CreationTimeT&& value) {
136 m_creationTimeHasBeenSet = true;
137 m_creationTime = std::forward<CreationTimeT>(value);
138 }
139 template <typename CreationTimeT = Aws::Utils::DateTime>
140 ActionSummary& WithCreationTime(CreationTimeT&& value) {
141 SetCreationTime(std::forward<CreationTimeT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
151 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
152 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
153 void SetLastModifiedTime(LastModifiedTimeT&& value) {
154 m_lastModifiedTimeHasBeenSet = true;
155 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
156 }
157 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
158 ActionSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
159 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_actionArn;
165
166 Aws::String m_actionName;
167
168 ActionSource m_source;
169
170 Aws::String m_actionType;
171
173
174 Aws::Utils::DateTime m_creationTime{};
175
176 Aws::Utils::DateTime m_lastModifiedTime{};
177 bool m_actionArnHasBeenSet = false;
178 bool m_actionNameHasBeenSet = false;
179 bool m_sourceHasBeenSet = false;
180 bool m_actionTypeHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_creationTimeHasBeenSet = false;
183 bool m_lastModifiedTimeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace SageMaker
188} // namespace Aws
AWS_SAGEMAKER_API ActionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetActionType() const
const Aws::String & GetActionName() const
void SetActionArn(ActionArnT &&value)
ActionSummary & WithStatus(ActionStatus value)
ActionSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetCreationTime(CreationTimeT &&value)
const ActionSource & GetSource() const
ActionSummary & WithActionName(ActionNameT &&value)
AWS_SAGEMAKER_API ActionSummary()=default
ActionSummary & WithSource(SourceT &&value)
void SetStatus(ActionStatus value)
const Aws::Utils::DateTime & GetCreationTime() const
ActionSummary & WithActionArn(ActionArnT &&value)
const Aws::String & GetActionArn() const
void SetActionName(ActionNameT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API ActionSummary(Aws::Utils::Json::JsonView jsonValue)
ActionSummary & WithActionType(ActionTypeT &&value)
void SetActionType(ActionTypeT &&value)
ActionSummary & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue