AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CodeCoverage.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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
37 {
38 public:
39 AWS_CODEBUILD_API CodeCoverage();
40 AWS_CODEBUILD_API CodeCoverage(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API CodeCoverage& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline CodeCoverage& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline CodeCoverage& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline CodeCoverage& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetReportARN() const{ return m_reportARN; }
64 inline bool ReportARNHasBeenSet() const { return m_reportARNHasBeenSet; }
65 inline void SetReportARN(const Aws::String& value) { m_reportARNHasBeenSet = true; m_reportARN = value; }
66 inline void SetReportARN(Aws::String&& value) { m_reportARNHasBeenSet = true; m_reportARN = std::move(value); }
67 inline void SetReportARN(const char* value) { m_reportARNHasBeenSet = true; m_reportARN.assign(value); }
68 inline CodeCoverage& WithReportARN(const Aws::String& value) { SetReportARN(value); return *this;}
69 inline CodeCoverage& WithReportARN(Aws::String&& value) { SetReportARN(std::move(value)); return *this;}
70 inline CodeCoverage& WithReportARN(const char* value) { SetReportARN(value); return *this;}
72
74
77 inline const Aws::String& GetFilePath() const{ return m_filePath; }
78 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
79 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
80 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
81 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
82 inline CodeCoverage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
83 inline CodeCoverage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
84 inline CodeCoverage& WithFilePath(const char* value) { SetFilePath(value); return *this;}
86
88
91 inline double GetLineCoveragePercentage() const{ return m_lineCoveragePercentage; }
92 inline bool LineCoveragePercentageHasBeenSet() const { return m_lineCoveragePercentageHasBeenSet; }
93 inline void SetLineCoveragePercentage(double value) { m_lineCoveragePercentageHasBeenSet = true; m_lineCoveragePercentage = value; }
94 inline CodeCoverage& WithLineCoveragePercentage(double value) { SetLineCoveragePercentage(value); return *this;}
96
98
101 inline int GetLinesCovered() const{ return m_linesCovered; }
102 inline bool LinesCoveredHasBeenSet() const { return m_linesCoveredHasBeenSet; }
103 inline void SetLinesCovered(int value) { m_linesCoveredHasBeenSet = true; m_linesCovered = value; }
104 inline CodeCoverage& WithLinesCovered(int value) { SetLinesCovered(value); return *this;}
106
108
111 inline int GetLinesMissed() const{ return m_linesMissed; }
112 inline bool LinesMissedHasBeenSet() const { return m_linesMissedHasBeenSet; }
113 inline void SetLinesMissed(int value) { m_linesMissedHasBeenSet = true; m_linesMissed = value; }
114 inline CodeCoverage& WithLinesMissed(int value) { SetLinesMissed(value); return *this;}
116
118
121 inline double GetBranchCoveragePercentage() const{ return m_branchCoveragePercentage; }
122 inline bool BranchCoveragePercentageHasBeenSet() const { return m_branchCoveragePercentageHasBeenSet; }
123 inline void SetBranchCoveragePercentage(double value) { m_branchCoveragePercentageHasBeenSet = true; m_branchCoveragePercentage = value; }
124 inline CodeCoverage& WithBranchCoveragePercentage(double value) { SetBranchCoveragePercentage(value); return *this;}
126
128
131 inline int GetBranchesCovered() const{ return m_branchesCovered; }
132 inline bool BranchesCoveredHasBeenSet() const { return m_branchesCoveredHasBeenSet; }
133 inline void SetBranchesCovered(int value) { m_branchesCoveredHasBeenSet = true; m_branchesCovered = value; }
134 inline CodeCoverage& WithBranchesCovered(int value) { SetBranchesCovered(value); return *this;}
136
138
141 inline int GetBranchesMissed() const{ return m_branchesMissed; }
142 inline bool BranchesMissedHasBeenSet() const { return m_branchesMissedHasBeenSet; }
143 inline void SetBranchesMissed(int value) { m_branchesMissedHasBeenSet = true; m_branchesMissed = value; }
144 inline CodeCoverage& WithBranchesMissed(int value) { SetBranchesMissed(value); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetExpired() const{ return m_expired; }
152 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
153 inline void SetExpired(const Aws::Utils::DateTime& value) { m_expiredHasBeenSet = true; m_expired = value; }
154 inline void SetExpired(Aws::Utils::DateTime&& value) { m_expiredHasBeenSet = true; m_expired = std::move(value); }
155 inline CodeCoverage& WithExpired(const Aws::Utils::DateTime& value) { SetExpired(value); return *this;}
156 inline CodeCoverage& WithExpired(Aws::Utils::DateTime&& value) { SetExpired(std::move(value)); return *this;}
158 private:
159
160 Aws::String m_id;
161 bool m_idHasBeenSet = false;
162
163 Aws::String m_reportARN;
164 bool m_reportARNHasBeenSet = false;
165
166 Aws::String m_filePath;
167 bool m_filePathHasBeenSet = false;
168
169 double m_lineCoveragePercentage;
170 bool m_lineCoveragePercentageHasBeenSet = false;
171
172 int m_linesCovered;
173 bool m_linesCoveredHasBeenSet = false;
174
175 int m_linesMissed;
176 bool m_linesMissedHasBeenSet = false;
177
178 double m_branchCoveragePercentage;
179 bool m_branchCoveragePercentageHasBeenSet = false;
180
181 int m_branchesCovered;
182 bool m_branchesCoveredHasBeenSet = false;
183
184 int m_branchesMissed;
185 bool m_branchesMissedHasBeenSet = false;
186
187 Aws::Utils::DateTime m_expired;
188 bool m_expiredHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace CodeBuild
193} // namespace Aws
CodeCoverage & WithFilePath(Aws::String &&value)
void SetExpired(const Aws::Utils::DateTime &value)
CodeCoverage & WithReportARN(const char *value)
void SetFilePath(const Aws::String &value)
CodeCoverage & WithId(const char *value)
CodeCoverage & WithFilePath(const Aws::String &value)
void SetReportARN(const char *value)
const Aws::String & GetFilePath() const
void SetFilePath(Aws::String &&value)
CodeCoverage & WithFilePath(const char *value)
CodeCoverage & WithLineCoveragePercentage(double value)
AWS_CODEBUILD_API CodeCoverage & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeCoverage & WithId(Aws::String &&value)
void SetId(Aws::String &&value)
AWS_CODEBUILD_API CodeCoverage(Aws::Utils::Json::JsonView jsonValue)
CodeCoverage & WithId(const Aws::String &value)
CodeCoverage & WithExpired(const Aws::Utils::DateTime &value)
CodeCoverage & WithExpired(Aws::Utils::DateTime &&value)
CodeCoverage & WithReportARN(const Aws::String &value)
void SetReportARN(Aws::String &&value)
const Aws::String & GetId() const
CodeCoverage & WithBranchesCovered(int value)
const Aws::String & GetReportARN() const
CodeCoverage & WithReportARN(Aws::String &&value)
void SetId(const Aws::String &value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const char *value)
CodeCoverage & WithLinesCovered(int value)
void SetExpired(Aws::Utils::DateTime &&value)
CodeCoverage & WithBranchCoveragePercentage(double value)
const Aws::Utils::DateTime & GetExpired() const
void SetLineCoveragePercentage(double value)
void SetReportARN(const Aws::String &value)
void SetBranchCoveragePercentage(double value)
CodeCoverage & WithLinesMissed(int value)
void SetFilePath(const char *value)
CodeCoverage & WithBranchesMissed(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue