AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODEBUILD_API TestReportSummary() = default;
36 AWS_CODEBUILD_API TestReportSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetTotal() const { return m_total; }
47 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
48 inline void SetTotal(int value) { m_totalHasBeenSet = true; m_total = value; }
49 inline TestReportSummary& WithTotal(int value) { SetTotal(value); return *this;}
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) { m_statusCountsHasBeenSet = true; m_statusCounts = std::forward<StatusCountsT>(value); }
61 template<typename StatusCountsT = Aws::Map<Aws::String, int>>
62 TestReportSummary& WithStatusCounts(StatusCountsT&& value) { SetStatusCounts(std::forward<StatusCountsT>(value)); return *this;}
64 m_statusCountsHasBeenSet = true; m_statusCounts.emplace(key, value); return *this;
65 }
67
69
73 inline long long GetDurationInNanoSeconds() const { return m_durationInNanoSeconds; }
74 inline bool DurationInNanoSecondsHasBeenSet() const { return m_durationInNanoSecondsHasBeenSet; }
75 inline void SetDurationInNanoSeconds(long long value) { m_durationInNanoSecondsHasBeenSet = true; m_durationInNanoSeconds = value; }
76 inline TestReportSummary& WithDurationInNanoSeconds(long long value) { SetDurationInNanoSeconds(value); return *this;}
78 private:
79
80 int m_total{0};
81 bool m_totalHasBeenSet = false;
82
83 Aws::Map<Aws::String, int> m_statusCounts;
84 bool m_statusCountsHasBeenSet = false;
85
86 long long m_durationInNanoSeconds{0};
87 bool m_durationInNanoSecondsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeBuild
92} // 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