AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrainingJobStatusCounters.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_SAGEMAKER_API TrainingJobStatusCounters();
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline int GetCompleted() const{ return m_completed; }
45 inline bool CompletedHasBeenSet() const { return m_completedHasBeenSet; }
46 inline void SetCompleted(int value) { m_completedHasBeenSet = true; m_completed = value; }
47 inline TrainingJobStatusCounters& WithCompleted(int value) { SetCompleted(value); return *this;}
49
51
55 inline int GetInProgress() const{ return m_inProgress; }
56 inline bool InProgressHasBeenSet() const { return m_inProgressHasBeenSet; }
57 inline void SetInProgress(int value) { m_inProgressHasBeenSet = true; m_inProgress = value; }
58 inline TrainingJobStatusCounters& WithInProgress(int value) { SetInProgress(value); return *this;}
60
62
67 inline int GetRetryableError() const{ return m_retryableError; }
68 inline bool RetryableErrorHasBeenSet() const { return m_retryableErrorHasBeenSet; }
69 inline void SetRetryableError(int value) { m_retryableErrorHasBeenSet = true; m_retryableError = value; }
70 inline TrainingJobStatusCounters& WithRetryableError(int value) { SetRetryableError(value); return *this;}
72
74
78 inline int GetNonRetryableError() const{ return m_nonRetryableError; }
79 inline bool NonRetryableErrorHasBeenSet() const { return m_nonRetryableErrorHasBeenSet; }
80 inline void SetNonRetryableError(int value) { m_nonRetryableErrorHasBeenSet = true; m_nonRetryableError = value; }
81 inline TrainingJobStatusCounters& WithNonRetryableError(int value) { SetNonRetryableError(value); return *this;}
83
85
89 inline int GetStopped() const{ return m_stopped; }
90 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
91 inline void SetStopped(int value) { m_stoppedHasBeenSet = true; m_stopped = value; }
92 inline TrainingJobStatusCounters& WithStopped(int value) { SetStopped(value); return *this;}
94 private:
95
96 int m_completed;
97 bool m_completedHasBeenSet = false;
98
99 int m_inProgress;
100 bool m_inProgressHasBeenSet = false;
101
102 int m_retryableError;
103 bool m_retryableErrorHasBeenSet = false;
104
105 int m_nonRetryableError;
106 bool m_nonRetryableErrorHasBeenSet = false;
107
108 int m_stopped;
109 bool m_stoppedHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SageMaker
114} // namespace Aws
AWS_SAGEMAKER_API TrainingJobStatusCounters & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainingJobStatusCounters & WithStopped(int value)
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