AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TestReportSummary.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
29 public:
30 AWS_CODEBUILD_API TestReportSummary() = default;
31 AWS_CODEBUILD_API TestReportSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline int GetTotal() const { return m_total; }
41 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
42 inline void SetTotal(int value) {
43 m_totalHasBeenSet = true;
44 m_total = value;
45 }
46 inline TestReportSummary& WithTotal(int value) {
47 SetTotal(value);
48 return *this;
49 }
51
53
57 inline const Aws::Map<Aws::String, int>& GetStatusCounts() const { return m_statusCounts; }
58 inline bool StatusCountsHasBeenSet() const { return m_statusCountsHasBeenSet; }
59 template <typename StatusCountsT = Aws::Map<Aws::String, int>>
60 void SetStatusCounts(StatusCountsT&& value) {
61 m_statusCountsHasBeenSet = true;
62 m_statusCounts = std::forward<StatusCountsT>(value);
63 }
64 template <typename StatusCountsT = Aws::Map<Aws::String, int>>
65 TestReportSummary& WithStatusCounts(StatusCountsT&& value) {
66 SetStatusCounts(std::forward<StatusCountsT>(value));
67 return *this;
68 }
70 m_statusCountsHasBeenSet = true;
71 m_statusCounts.emplace(key, value);
72 return *this;
73 }
75
77
81 inline long long GetDurationInNanoSeconds() const { return m_durationInNanoSeconds; }
82 inline bool DurationInNanoSecondsHasBeenSet() const { return m_durationInNanoSecondsHasBeenSet; }
83 inline void SetDurationInNanoSeconds(long long value) {
84 m_durationInNanoSecondsHasBeenSet = true;
85 m_durationInNanoSeconds = value;
86 }
89 return *this;
90 }
92 private:
93 int m_total{0};
94
95 Aws::Map<Aws::String, int> m_statusCounts;
96
97 long long m_durationInNanoSeconds{0};
98 bool m_totalHasBeenSet = false;
99 bool m_statusCountsHasBeenSet = false;
100 bool m_durationInNanoSecondsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CodeBuild
105} // namespace Aws
AWS_CODEBUILD_API TestReportSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusCounts(StatusCountsT &&value)
AWS_CODEBUILD_API TestReportSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
TestReportSummary & AddStatusCounts(Aws::String key, int value)
const Aws::Map< Aws::String, int > & GetStatusCounts() const
TestReportSummary & WithDurationInNanoSeconds(long long value)
TestReportSummary & WithTotal(int value)
TestReportSummary & WithStatusCounts(StatusCountsT &&value)
AWS_CODEBUILD_API TestReportSummary()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue