AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LabelCounters.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 LabelCounters() = default;
28 AWS_SAGEMAKER_API LabelCounters(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SAGEMAKER_API LabelCounters& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetTotalLabeled() const { return m_totalLabeled; }
37 inline bool TotalLabeledHasBeenSet() const { return m_totalLabeledHasBeenSet; }
38 inline void SetTotalLabeled(int value) {
39 m_totalLabeledHasBeenSet = true;
40 m_totalLabeled = value;
41 }
42 inline LabelCounters& WithTotalLabeled(int value) {
43 SetTotalLabeled(value);
44 return *this;
45 }
47
49
52 inline int GetHumanLabeled() const { return m_humanLabeled; }
53 inline bool HumanLabeledHasBeenSet() const { return m_humanLabeledHasBeenSet; }
54 inline void SetHumanLabeled(int value) {
55 m_humanLabeledHasBeenSet = true;
56 m_humanLabeled = value;
57 }
58 inline LabelCounters& WithHumanLabeled(int value) {
59 SetHumanLabeled(value);
60 return *this;
61 }
63
65
68 inline int GetMachineLabeled() const { return m_machineLabeled; }
69 inline bool MachineLabeledHasBeenSet() const { return m_machineLabeledHasBeenSet; }
70 inline void SetMachineLabeled(int value) {
71 m_machineLabeledHasBeenSet = true;
72 m_machineLabeled = value;
73 }
74 inline LabelCounters& WithMachineLabeled(int value) {
75 SetMachineLabeled(value);
76 return *this;
77 }
79
81
84 inline int GetFailedNonRetryableError() const { return m_failedNonRetryableError; }
85 inline bool FailedNonRetryableErrorHasBeenSet() const { return m_failedNonRetryableErrorHasBeenSet; }
86 inline void SetFailedNonRetryableError(int value) {
87 m_failedNonRetryableErrorHasBeenSet = true;
88 m_failedNonRetryableError = value;
89 }
92 return *this;
93 }
95
97
100 inline int GetUnlabeled() const { return m_unlabeled; }
101 inline bool UnlabeledHasBeenSet() const { return m_unlabeledHasBeenSet; }
102 inline void SetUnlabeled(int value) {
103 m_unlabeledHasBeenSet = true;
104 m_unlabeled = value;
105 }
106 inline LabelCounters& WithUnlabeled(int value) {
107 SetUnlabeled(value);
108 return *this;
109 }
111 private:
112 int m_totalLabeled{0};
113
114 int m_humanLabeled{0};
115
116 int m_machineLabeled{0};
117
118 int m_failedNonRetryableError{0};
119
120 int m_unlabeled{0};
121 bool m_totalLabeledHasBeenSet = false;
122 bool m_humanLabeledHasBeenSet = false;
123 bool m_machineLabeledHasBeenSet = false;
124 bool m_failedNonRetryableErrorHasBeenSet = false;
125 bool m_unlabeledHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SageMaker
130} // namespace Aws
LabelCounters & WithFailedNonRetryableError(int value)
LabelCounters & WithUnlabeled(int value)
LabelCounters & WithHumanLabeled(int value)
LabelCounters & WithTotalLabeled(int value)
AWS_SAGEMAKER_API LabelCounters(Aws::Utils::Json::JsonView jsonValue)
LabelCounters & WithMachineLabeled(int value)
AWS_SAGEMAKER_API LabelCounters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API LabelCounters()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue