AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStatusCounts(const Aws::Map<Aws::String, int>& value) { m_statusCountsHasBeenSet = true; m_statusCounts = value; }
60 inline void SetStatusCounts(Aws::Map<Aws::String, int>&& value) { m_statusCountsHasBeenSet = true; m_statusCounts = std::move(value); }
62 inline TestReportSummary& WithStatusCounts(Aws::Map<Aws::String, int>&& value) { SetStatusCounts(std::move(value)); return *this;}
63 inline TestReportSummary& AddStatusCounts(const Aws::String& key, int value) { m_statusCountsHasBeenSet = true; m_statusCounts.emplace(key, value); return *this; }
64 inline TestReportSummary& AddStatusCounts(Aws::String&& key, int value) { m_statusCountsHasBeenSet = true; m_statusCounts.emplace(std::move(key), value); return *this; }
65 inline TestReportSummary& AddStatusCounts(const char* key, int value) { m_statusCountsHasBeenSet = true; m_statusCounts.emplace(key, value); return *this; }
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;
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;
87 bool m_durationInNanoSecondsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeBuild
92} // namespace Aws
TestReportSummary & WithStatusCounts(const Aws::Map< Aws::String, int > &value)
AWS_CODEBUILD_API TestReportSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TestReportSummary & AddStatusCounts(Aws::String &&key, int value)
TestReportSummary & AddStatusCounts(const char *key, int value)
TestReportSummary & AddStatusCounts(const Aws::String &key, int value)
AWS_CODEBUILD_API TestReportSummary(Aws::Utils::Json::JsonView jsonValue)
void SetStatusCounts(Aws::Map< Aws::String, int > &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
TestReportSummary & WithStatusCounts(Aws::Map< Aws::String, int > &&value)
const Aws::Map< Aws::String, int > & GetStatusCounts() const
TestReportSummary & WithDurationInNanoSeconds(long long value)
TestReportSummary & WithTotal(int value)
void SetStatusCounts(const Aws::Map< Aws::String, int > &value)
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