AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrainingProgressInfo.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 TrainingProgressInfo() = default;
30 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline long long GetTotalStepCountPerEpoch() const { return m_totalStepCountPerEpoch; }
37 inline bool TotalStepCountPerEpochHasBeenSet() const { return m_totalStepCountPerEpochHasBeenSet; }
38 inline void SetTotalStepCountPerEpoch(long long value) {
39 m_totalStepCountPerEpochHasBeenSet = true;
40 m_totalStepCountPerEpoch = value;
41 }
44 return *this;
45 }
47
49
52 inline long long GetCurrentStep() const { return m_currentStep; }
53 inline bool CurrentStepHasBeenSet() const { return m_currentStepHasBeenSet; }
54 inline void SetCurrentStep(long long value) {
55 m_currentStepHasBeenSet = true;
56 m_currentStep = value;
57 }
58 inline TrainingProgressInfo& WithCurrentStep(long long value) {
59 SetCurrentStep(value);
60 return *this;
61 }
63
65
68 inline long long GetCurrentEpoch() const { return m_currentEpoch; }
69 inline bool CurrentEpochHasBeenSet() const { return m_currentEpochHasBeenSet; }
70 inline void SetCurrentEpoch(long long value) {
71 m_currentEpochHasBeenSet = true;
72 m_currentEpoch = value;
73 }
74 inline TrainingProgressInfo& WithCurrentEpoch(long long value) {
75 SetCurrentEpoch(value);
76 return *this;
77 }
79
81
84 inline long long GetMaxEpoch() const { return m_maxEpoch; }
85 inline bool MaxEpochHasBeenSet() const { return m_maxEpochHasBeenSet; }
86 inline void SetMaxEpoch(long long value) {
87 m_maxEpochHasBeenSet = true;
88 m_maxEpoch = value;
89 }
90 inline TrainingProgressInfo& WithMaxEpoch(long long value) {
91 SetMaxEpoch(value);
92 return *this;
93 }
95 private:
96 long long m_totalStepCountPerEpoch{0};
97
98 long long m_currentStep{0};
99
100 long long m_currentEpoch{0};
101
102 long long m_maxEpoch{0};
103 bool m_totalStepCountPerEpochHasBeenSet = false;
104 bool m_currentStepHasBeenSet = false;
105 bool m_currentEpochHasBeenSet = false;
106 bool m_maxEpochHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace SageMaker
111} // namespace Aws
TrainingProgressInfo & WithCurrentEpoch(long long value)
AWS_SAGEMAKER_API TrainingProgressInfo(Aws::Utils::Json::JsonView jsonValue)
TrainingProgressInfo & WithTotalStepCountPerEpoch(long long value)
AWS_SAGEMAKER_API TrainingProgressInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainingProgressInfo & WithMaxEpoch(long long value)
TrainingProgressInfo & WithCurrentStep(long long value)
AWS_SAGEMAKER_API TrainingProgressInfo()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue