AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SourceProgress.h
1
6#pragma once
7#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace ObservabilityAdmin {
17namespace Model {
18
27 public:
28 AWS_OBSERVABILITYADMIN_API SourceProgress() = default;
29 AWS_OBSERVABILITYADMIN_API SourceProgress(Aws::Utils::Json::JsonView jsonValue);
30 AWS_OBSERVABILITYADMIN_API SourceProgress& operator=(Aws::Utils::Json::JsonView jsonValue);
31 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline int GetActive() const { return m_active; }
39 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
40 inline void SetActive(int value) {
41 m_activeHasBeenSet = true;
42 m_active = value;
43 }
44 inline SourceProgress& WithActive(int value) {
45 SetActive(value);
46 return *this;
47 }
49
51
54 inline int GetTotal() const { return m_total; }
55 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
56 inline void SetTotal(int value) {
57 m_totalHasBeenSet = true;
58 m_total = value;
59 }
60 inline SourceProgress& WithTotal(int value) {
61 SetTotal(value);
62 return *this;
63 }
65 private:
66 int m_active{0};
67
68 int m_total{0};
69 bool m_activeHasBeenSet = false;
70 bool m_totalHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace ObservabilityAdmin
75} // namespace Aws
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OBSERVABILITYADMIN_API SourceProgress & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API SourceProgress(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API SourceProgress()=default
Aws::Utils::Json::JsonValue JsonValue