AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProgressCounters.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SSM {
17namespace Model {
18
27 public:
28 AWS_SSM_API ProgressCounters() = default;
32
34
38 inline int GetTotalSteps() const { return m_totalSteps; }
39 inline bool TotalStepsHasBeenSet() const { return m_totalStepsHasBeenSet; }
40 inline void SetTotalSteps(int value) {
41 m_totalStepsHasBeenSet = true;
42 m_totalSteps = value;
43 }
44 inline ProgressCounters& WithTotalSteps(int value) {
45 SetTotalSteps(value);
46 return *this;
47 }
49
51
56 inline int GetSuccessSteps() const { return m_successSteps; }
57 inline bool SuccessStepsHasBeenSet() const { return m_successStepsHasBeenSet; }
58 inline void SetSuccessSteps(int value) {
59 m_successStepsHasBeenSet = true;
60 m_successSteps = value;
61 }
63 SetSuccessSteps(value);
64 return *this;
65 }
67
69
74 inline int GetFailedSteps() const { return m_failedSteps; }
75 inline bool FailedStepsHasBeenSet() const { return m_failedStepsHasBeenSet; }
76 inline void SetFailedSteps(int value) {
77 m_failedStepsHasBeenSet = true;
78 m_failedSteps = value;
79 }
80 inline ProgressCounters& WithFailedSteps(int value) {
81 SetFailedSteps(value);
82 return *this;
83 }
85
87
92 inline int GetCancelledSteps() const { return m_cancelledSteps; }
93 inline bool CancelledStepsHasBeenSet() const { return m_cancelledStepsHasBeenSet; }
94 inline void SetCancelledSteps(int value) {
95 m_cancelledStepsHasBeenSet = true;
96 m_cancelledSteps = value;
97 }
99 SetCancelledSteps(value);
100 return *this;
101 }
103
105
110 inline int GetTimedOutSteps() const { return m_timedOutSteps; }
111 inline bool TimedOutStepsHasBeenSet() const { return m_timedOutStepsHasBeenSet; }
112 inline void SetTimedOutSteps(int value) {
113 m_timedOutStepsHasBeenSet = true;
114 m_timedOutSteps = value;
115 }
117 SetTimedOutSteps(value);
118 return *this;
119 }
121 private:
122 int m_totalSteps{0};
123
124 int m_successSteps{0};
125
126 int m_failedSteps{0};
127
128 int m_cancelledSteps{0};
129
130 int m_timedOutSteps{0};
131 bool m_totalStepsHasBeenSet = false;
132 bool m_successStepsHasBeenSet = false;
133 bool m_failedStepsHasBeenSet = false;
134 bool m_cancelledStepsHasBeenSet = false;
135 bool m_timedOutStepsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace SSM
140} // namespace Aws
ProgressCounters & WithTimedOutSteps(int value)
ProgressCounters & WithFailedSteps(int value)
ProgressCounters & WithCancelledSteps(int value)
AWS_SSM_API ProgressCounters(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API ProgressCounters()=default
ProgressCounters & WithTotalSteps(int value)
ProgressCounters & WithSuccessSteps(int value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API ProgressCounters & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue