AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ResourceCountsSummary.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Proton {
17namespace Model {
18
25 public:
26 AWS_PROTON_API ResourceCountsSummary() = default;
29 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
36 inline int GetBehindMajor() const { return m_behindMajor; }
37 inline bool BehindMajorHasBeenSet() const { return m_behindMajorHasBeenSet; }
38 inline void SetBehindMajor(int value) {
39 m_behindMajorHasBeenSet = true;
40 m_behindMajor = value;
41 }
43 SetBehindMajor(value);
44 return *this;
45 }
47
49
53 inline int GetBehindMinor() const { return m_behindMinor; }
54 inline bool BehindMinorHasBeenSet() const { return m_behindMinorHasBeenSet; }
55 inline void SetBehindMinor(int value) {
56 m_behindMinorHasBeenSet = true;
57 m_behindMinor = value;
58 }
60 SetBehindMinor(value);
61 return *this;
62 }
64
66
70 inline int GetFailed() const { return m_failed; }
71 inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; }
72 inline void SetFailed(int value) {
73 m_failedHasBeenSet = true;
74 m_failed = value;
75 }
76 inline ResourceCountsSummary& WithFailed(int value) {
77 SetFailed(value);
78 return *this;
79 }
81
83
87 inline int GetTotal() const { return m_total; }
88 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
89 inline void SetTotal(int value) {
90 m_totalHasBeenSet = true;
91 m_total = value;
92 }
93 inline ResourceCountsSummary& WithTotal(int value) {
94 SetTotal(value);
95 return *this;
96 }
98
100
104 inline int GetUpToDate() const { return m_upToDate; }
105 inline bool UpToDateHasBeenSet() const { return m_upToDateHasBeenSet; }
106 inline void SetUpToDate(int value) {
107 m_upToDateHasBeenSet = true;
108 m_upToDate = value;
109 }
111 SetUpToDate(value);
112 return *this;
113 }
115 private:
116 int m_behindMajor{0};
117
118 int m_behindMinor{0};
119
120 int m_failed{0};
121
122 int m_total{0};
123
124 int m_upToDate{0};
125 bool m_behindMajorHasBeenSet = false;
126 bool m_behindMinorHasBeenSet = false;
127 bool m_failedHasBeenSet = false;
128 bool m_totalHasBeenSet = false;
129 bool m_upToDateHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Proton
134} // namespace Aws
AWS_PROTON_API ResourceCountsSummary()=default
AWS_PROTON_API ResourceCountsSummary(Aws::Utils::Json::JsonView jsonValue)
ResourceCountsSummary & WithUpToDate(int value)
ResourceCountsSummary & WithBehindMinor(int value)
ResourceCountsSummary & WithTotal(int value)
ResourceCountsSummary & WithFailed(int value)
AWS_PROTON_API ResourceCountsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceCountsSummary & WithBehindMajor(int value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue