AWS SDK for C++

AWS SDK for C++ Version 1.11.943

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 <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
29 public:
30 AWS_CODEBUILD_API TestReportSummary() = default;
31 AWS_CODEBUILD_API TestReportSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEBUILD_API TestReportSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline int64_t GetTotal() const { return m_total; }
41 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
42 inline void SetTotal(int64_t value) {
43 m_totalHasBeenSet = true;
44 m_total = value;
45 }
46 inline TestReportSummary& WithTotal(int64_t value) {
47 SetTotal(value);
48 return *this;
49 }
51
53
57 inline const Aws::Map<Aws::String, int64_t>& GetStatusCounts() const { return m_statusCounts; }
58 inline bool StatusCountsHasBeenSet() const { return m_statusCountsHasBeenSet; }
59 template <typename StatusCountsT = Aws::Map<Aws::String, int64_t>>
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, int64_t>>
65 TestReportSummary& WithStatusCounts(StatusCountsT&& value) {
66 SetStatusCounts(std::forward<StatusCountsT>(value));
67 return *this;
68 }
69 inline TestReportSummary& AddStatusCounts(Aws::String key, int64_t value) {
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 int64_t m_total{0};
94
95 Aws::Map<Aws::String, int64_t> 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
TestReportSummary & WithTotal(int64_t value)
void SetStatusCounts(StatusCountsT &&value)
AWS_CODEBUILD_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Map< Aws::String, int64_t > & GetStatusCounts() const
AWS_CODEBUILD_API TestReportSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TestReportSummary & WithDurationInNanoSeconds(long long value)
AWS_CODEBUILD_API TestReportSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TestReportSummary & WithStatusCounts(StatusCountsT &&value)
TestReportSummary & AddStatusCounts(Aws::String key, int64_t 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