AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
Progress.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace WellArchitected {
17namespace Model {
18
25class Progress {
26 public:
27 AWS_WELLARCHITECTED_API Progress() = default;
28 AWS_WELLARCHITECTED_API Progress(Aws::Utils::Json::JsonView jsonValue);
29 AWS_WELLARCHITECTED_API Progress& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetStepsCompleted() const { return m_stepsCompleted; }
37 inline bool StepsCompletedHasBeenSet() const { return m_stepsCompletedHasBeenSet; }
38 inline void SetStepsCompleted(int value) {
39 m_stepsCompletedHasBeenSet = true;
40 m_stepsCompleted = value;
41 }
42 inline Progress& WithStepsCompleted(int value) {
43 SetStepsCompleted(value);
44 return *this;
45 }
47
49
52 inline int GetTotalSteps() const { return m_totalSteps; }
53 inline bool TotalStepsHasBeenSet() const { return m_totalStepsHasBeenSet; }
54 inline void SetTotalSteps(int value) {
55 m_totalStepsHasBeenSet = true;
56 m_totalSteps = value;
57 }
58 inline Progress& WithTotalSteps(int value) {
59 SetTotalSteps(value);
60 return *this;
61 }
63
65
68 inline double GetCompletionPercentage() const { return m_completionPercentage; }
69 inline bool CompletionPercentageHasBeenSet() const { return m_completionPercentageHasBeenSet; }
70 inline void SetCompletionPercentage(double value) {
71 m_completionPercentageHasBeenSet = true;
72 m_completionPercentage = value;
73 }
74 inline Progress& WithCompletionPercentage(double value) {
76 return *this;
77 }
79 private:
80 int m_stepsCompleted{0};
81
82 int m_totalSteps{0};
83
84 double m_completionPercentage{0.0};
85 bool m_stepsCompletedHasBeenSet = false;
86 bool m_totalStepsHasBeenSet = false;
87 bool m_completionPercentageHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace WellArchitected
92} // namespace Aws
Progress & WithStepsCompleted(int value)
Definition Progress.h:42
void SetCompletionPercentage(double value)
Definition Progress.h:70
Progress & WithTotalSteps(int value)
Definition Progress.h:58
AWS_WELLARCHITECTED_API Progress(Aws::Utils::Json::JsonView jsonValue)
Progress & WithCompletionPercentage(double value)
Definition Progress.h:74
AWS_WELLARCHITECTED_API Progress & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WELLARCHITECTED_API Progress()=default
Aws::Utils::Json::JsonValue JsonValue