AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
StatusCounts.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Inspector2 {
17namespace Model {
18
25 public:
26 AWS_INSPECTOR2_API StatusCounts() = default;
27 AWS_INSPECTOR2_API StatusCounts(Aws::Utils::Json::JsonView jsonValue);
28 AWS_INSPECTOR2_API StatusCounts& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetFailed() const { return m_failed; }
36 inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; }
37 inline void SetFailed(int value) {
38 m_failedHasBeenSet = true;
39 m_failed = value;
40 }
41 inline StatusCounts& WithFailed(int value) {
42 SetFailed(value);
43 return *this;
44 }
46
48
51 inline int GetSkipped() const { return m_skipped; }
52 inline bool SkippedHasBeenSet() const { return m_skippedHasBeenSet; }
53 inline void SetSkipped(int value) {
54 m_skippedHasBeenSet = true;
55 m_skipped = value;
56 }
57 inline StatusCounts& WithSkipped(int value) {
58 SetSkipped(value);
59 return *this;
60 }
62
64
67 inline int GetPassed() const { return m_passed; }
68 inline bool PassedHasBeenSet() const { return m_passedHasBeenSet; }
69 inline void SetPassed(int value) {
70 m_passedHasBeenSet = true;
71 m_passed = value;
72 }
73 inline StatusCounts& WithPassed(int value) {
74 SetPassed(value);
75 return *this;
76 }
78 private:
79 int m_failed{0};
80
81 int m_skipped{0};
82
83 int m_passed{0};
84 bool m_failedHasBeenSet = false;
85 bool m_skippedHasBeenSet = false;
86 bool m_passedHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Inspector2
91} // namespace Aws
AWS_INSPECTOR2_API StatusCounts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API StatusCounts()=default
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
StatusCounts & WithSkipped(int value)
AWS_INSPECTOR2_API StatusCounts(Aws::Utils::Json::JsonView jsonValue)
StatusCounts & WithFailed(int value)
StatusCounts & WithPassed(int value)
Aws::Utils::Json::JsonValue JsonValue