AWS SDK for C++

AWS SDK for C++ Version 1.11.918

Loading...
Searching...
No Matches
ForEachStepMetadata.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ForEachSelectorResult.h>
9#include <aws/sagemaker/model/ForEachStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API ForEachStepMetadata() = default;
32 AWS_SAGEMAKER_API ForEachStepMetadata(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ForEachStatus GetStatus() const { return m_status; }
41 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
42 inline void SetStatus(ForEachStatus value) {
43 m_statusHasBeenSet = true;
44 m_status = value;
45 }
47 SetStatus(value);
48 return *this;
49 }
51
53
56 inline int GetInputItemCount() const { return m_inputItemCount; }
57 inline bool InputItemCountHasBeenSet() const { return m_inputItemCountHasBeenSet; }
58 inline void SetInputItemCount(int value) {
59 m_inputItemCountHasBeenSet = true;
60 m_inputItemCount = value;
61 }
63 SetInputItemCount(value);
64 return *this;
65 }
67
69
73 inline int GetTotalStepCount() const { return m_totalStepCount; }
74 inline bool TotalStepCountHasBeenSet() const { return m_totalStepCountHasBeenSet; }
75 inline void SetTotalStepCount(int value) {
76 m_totalStepCountHasBeenSet = true;
77 m_totalStepCount = value;
78 }
80 SetTotalStepCount(value);
81 return *this;
82 }
84
86
89 inline int GetSucceededStepCount() const { return m_succeededStepCount; }
90 inline bool SucceededStepCountHasBeenSet() const { return m_succeededStepCountHasBeenSet; }
91 inline void SetSucceededStepCount(int value) {
92 m_succeededStepCountHasBeenSet = true;
93 m_succeededStepCount = value;
94 }
97 return *this;
98 }
100
102
105 inline int GetFailedStepCount() const { return m_failedStepCount; }
106 inline bool FailedStepCountHasBeenSet() const { return m_failedStepCountHasBeenSet; }
107 inline void SetFailedStepCount(int value) {
108 m_failedStepCountHasBeenSet = true;
109 m_failedStepCount = value;
110 }
112 SetFailedStepCount(value);
113 return *this;
114 }
116
118
121 inline int GetStoppedStepCount() const { return m_stoppedStepCount; }
122 inline bool StoppedStepCountHasBeenSet() const { return m_stoppedStepCountHasBeenSet; }
123 inline void SetStoppedStepCount(int value) {
124 m_stoppedStepCountHasBeenSet = true;
125 m_stoppedStepCount = value;
126 }
128 SetStoppedStepCount(value);
129 return *this;
130 }
132
134
137 inline const ForEachSelectorResult& GetSelector() const { return m_selector; }
138 inline bool SelectorHasBeenSet() const { return m_selectorHasBeenSet; }
139 template <typename SelectorT = ForEachSelectorResult>
140 void SetSelector(SelectorT&& value) {
141 m_selectorHasBeenSet = true;
142 m_selector = std::forward<SelectorT>(value);
143 }
144 template <typename SelectorT = ForEachSelectorResult>
145 ForEachStepMetadata& WithSelector(SelectorT&& value) {
146 SetSelector(std::forward<SelectorT>(value));
147 return *this;
148 }
150 private:
152
153 int m_inputItemCount{0};
154
155 int m_totalStepCount{0};
156
157 int m_succeededStepCount{0};
158
159 int m_failedStepCount{0};
160
161 int m_stoppedStepCount{0};
162
163 ForEachSelectorResult m_selector;
164 bool m_statusHasBeenSet = false;
165 bool m_inputItemCountHasBeenSet = false;
166 bool m_totalStepCountHasBeenSet = false;
167 bool m_succeededStepCountHasBeenSet = false;
168 bool m_failedStepCountHasBeenSet = false;
169 bool m_stoppedStepCountHasBeenSet = false;
170 bool m_selectorHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace SageMaker
175} // namespace Aws
ForEachStepMetadata & WithStatus(ForEachStatus value)
const ForEachSelectorResult & GetSelector() const
ForEachStepMetadata & WithSelector(SelectorT &&value)
AWS_SAGEMAKER_API ForEachStepMetadata(Aws::Utils::Json::JsonView jsonValue)
ForEachStepMetadata & WithStoppedStepCount(int value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ForEachStepMetadata & WithTotalStepCount(int value)
ForEachStepMetadata & WithFailedStepCount(int value)
AWS_SAGEMAKER_API ForEachStepMetadata()=default
ForEachStepMetadata & WithInputItemCount(int value)
ForEachStepMetadata & WithSucceededStepCount(int value)
AWS_SAGEMAKER_API ForEachStepMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue