AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrainingJobStatusCounters.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMaker {
17namespace Model {
18
26 public:
27 AWS_SAGEMAKER_API TrainingJobStatusCounters() = default;
30 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline int GetCompleted() const { return m_completed; }
38 inline bool CompletedHasBeenSet() const { return m_completedHasBeenSet; }
39 inline void SetCompleted(int value) {
40 m_completedHasBeenSet = true;
41 m_completed = value;
42 }
44 SetCompleted(value);
45 return *this;
46 }
48
50
54 inline int GetInProgress() const { return m_inProgress; }
55 inline bool InProgressHasBeenSet() const { return m_inProgressHasBeenSet; }
56 inline void SetInProgress(int value) {
57 m_inProgressHasBeenSet = true;
58 m_inProgress = value;
59 }
61 SetInProgress(value);
62 return *this;
63 }
65
67
72 inline int GetRetryableError() const { return m_retryableError; }
73 inline bool RetryableErrorHasBeenSet() const { return m_retryableErrorHasBeenSet; }
74 inline void SetRetryableError(int value) {
75 m_retryableErrorHasBeenSet = true;
76 m_retryableError = value;
77 }
79 SetRetryableError(value);
80 return *this;
81 }
83
85
89 inline int GetNonRetryableError() const { return m_nonRetryableError; }
90 inline bool NonRetryableErrorHasBeenSet() const { return m_nonRetryableErrorHasBeenSet; }
91 inline void SetNonRetryableError(int value) {
92 m_nonRetryableErrorHasBeenSet = true;
93 m_nonRetryableError = value;
94 }
97 return *this;
98 }
100
102
106 inline int GetStopped() const { return m_stopped; }
107 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
108 inline void SetStopped(int value) {
109 m_stoppedHasBeenSet = true;
110 m_stopped = value;
111 }
113 SetStopped(value);
114 return *this;
115 }
117 private:
118 int m_completed{0};
119
120 int m_inProgress{0};
121
122 int m_retryableError{0};
123
124 int m_nonRetryableError{0};
125
126 int m_stopped{0};
127 bool m_completedHasBeenSet = false;
128 bool m_inProgressHasBeenSet = false;
129 bool m_retryableErrorHasBeenSet = false;
130 bool m_nonRetryableErrorHasBeenSet = false;
131 bool m_stoppedHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace SageMaker
136} // namespace Aws
AWS_SAGEMAKER_API TrainingJobStatusCounters()=default
AWS_SAGEMAKER_API TrainingJobStatusCounters & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainingJobStatusCounters & WithCompleted(int value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrainingJobStatusCounters & WithInProgress(int value)
TrainingJobStatusCounters & WithRetryableError(int value)
AWS_SAGEMAKER_API TrainingJobStatusCounters(Aws::Utils::Json::JsonView jsonValue)
TrainingJobStatusCounters & WithNonRetryableError(int value)
Aws::Utils::Json::JsonValue JsonValue