AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
TargetsSummary.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 TargetsSummary() = default;
32
34
37 inline int GetTotalCount() const { return m_totalCount; }
38 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
39 inline void SetTotalCount(int value) {
40 m_totalCountHasBeenSet = true;
41 m_totalCount = value;
42 }
43 inline TargetsSummary& WithTotalCount(int value) {
44 SetTotalCount(value);
45 return *this;
46 }
48
50
53 inline int GetStartedCount() const { return m_startedCount; }
54 inline bool StartedCountHasBeenSet() const { return m_startedCountHasBeenSet; }
55 inline void SetStartedCount(int value) {
56 m_startedCountHasBeenSet = true;
57 m_startedCount = value;
58 }
59 inline TargetsSummary& WithStartedCount(int value) {
60 SetStartedCount(value);
61 return *this;
62 }
64
66
70 inline int GetCompletedCount() const { return m_completedCount; }
71 inline bool CompletedCountHasBeenSet() const { return m_completedCountHasBeenSet; }
72 inline void SetCompletedCount(int value) {
73 m_completedCountHasBeenSet = true;
74 m_completedCount = value;
75 }
77 SetCompletedCount(value);
78 return *this;
79 }
81
83
86 inline int GetSuccessfulCount() const { return m_successfulCount; }
87 inline bool SuccessfulCountHasBeenSet() const { return m_successfulCountHasBeenSet; }
88 inline void SetSuccessfulCount(int value) {
89 m_successfulCountHasBeenSet = true;
90 m_successfulCount = value;
91 }
93 SetSuccessfulCount(value);
94 return *this;
95 }
97
99
102 inline int GetFailedCount() const { return m_failedCount; }
103 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
104 inline void SetFailedCount(int value) {
105 m_failedCountHasBeenSet = true;
106 m_failedCount = value;
107 }
108 inline TargetsSummary& WithFailedCount(int value) {
109 SetFailedCount(value);
110 return *this;
111 }
113 private:
114 int m_totalCount{0};
115
116 int m_startedCount{0};
117
118 int m_completedCount{0};
119
120 int m_successfulCount{0};
121
122 int m_failedCount{0};
123 bool m_totalCountHasBeenSet = false;
124 bool m_startedCountHasBeenSet = false;
125 bool m_completedCountHasBeenSet = false;
126 bool m_successfulCountHasBeenSet = false;
127 bool m_failedCountHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SSM
132} // namespace Aws
AWS_SSM_API TargetsSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API TargetsSummary()=default
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
TargetsSummary & WithTotalCount(int value)
TargetsSummary & WithSuccessfulCount(int value)
TargetsSummary & WithStartedCount(int value)
TargetsSummary & WithFailedCount(int value)
TargetsSummary & WithCompletedCount(int value)
AWS_SSM_API TargetsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue