/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeGuruReviewer { namespace Model { /** *

Information about the statistics from the code review.

See * Also:

AWS * API Reference

*/ class Metrics { public: AWS_CODEGURUREVIEWER_API Metrics(); AWS_CODEGURUREVIEWER_API Metrics(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUREVIEWER_API Metrics& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

MeteredLinesOfCodeCount is the number of lines of code in the * repository where the code review happened. This does not include non-code lines * such as comments and blank lines.

*/ inline long long GetMeteredLinesOfCodeCount() const{ return m_meteredLinesOfCodeCount; } /** *

MeteredLinesOfCodeCount is the number of lines of code in the * repository where the code review happened. This does not include non-code lines * such as comments and blank lines.

*/ inline bool MeteredLinesOfCodeCountHasBeenSet() const { return m_meteredLinesOfCodeCountHasBeenSet; } /** *

MeteredLinesOfCodeCount is the number of lines of code in the * repository where the code review happened. This does not include non-code lines * such as comments and blank lines.

*/ inline void SetMeteredLinesOfCodeCount(long long value) { m_meteredLinesOfCodeCountHasBeenSet = true; m_meteredLinesOfCodeCount = value; } /** *

MeteredLinesOfCodeCount is the number of lines of code in the * repository where the code review happened. This does not include non-code lines * such as comments and blank lines.

*/ inline Metrics& WithMeteredLinesOfCodeCount(long long value) { SetMeteredLinesOfCodeCount(value); return *this;} /** *

SuppressedLinesOfCodeCount is the number of lines of code in * the repository where the code review happened that CodeGuru Reviewer did not * analyze. The lines suppressed in the analysis is based on the * excludeFiles variable in the aws-codeguru-reviewer.yml * file. This number does not include non-code lines such as comments and blank * lines.

*/ inline long long GetSuppressedLinesOfCodeCount() const{ return m_suppressedLinesOfCodeCount; } /** *

SuppressedLinesOfCodeCount is the number of lines of code in * the repository where the code review happened that CodeGuru Reviewer did not * analyze. The lines suppressed in the analysis is based on the * excludeFiles variable in the aws-codeguru-reviewer.yml * file. This number does not include non-code lines such as comments and blank * lines.

*/ inline bool SuppressedLinesOfCodeCountHasBeenSet() const { return m_suppressedLinesOfCodeCountHasBeenSet; } /** *

SuppressedLinesOfCodeCount is the number of lines of code in * the repository where the code review happened that CodeGuru Reviewer did not * analyze. The lines suppressed in the analysis is based on the * excludeFiles variable in the aws-codeguru-reviewer.yml * file. This number does not include non-code lines such as comments and blank * lines.

*/ inline void SetSuppressedLinesOfCodeCount(long long value) { m_suppressedLinesOfCodeCountHasBeenSet = true; m_suppressedLinesOfCodeCount = value; } /** *

SuppressedLinesOfCodeCount is the number of lines of code in * the repository where the code review happened that CodeGuru Reviewer did not * analyze. The lines suppressed in the analysis is based on the * excludeFiles variable in the aws-codeguru-reviewer.yml * file. This number does not include non-code lines such as comments and blank * lines.

*/ inline Metrics& WithSuppressedLinesOfCodeCount(long long value) { SetSuppressedLinesOfCodeCount(value); return *this;} /** *

Total number of recommendations found in the code review.

*/ inline long long GetFindingsCount() const{ return m_findingsCount; } /** *

Total number of recommendations found in the code review.

*/ inline bool FindingsCountHasBeenSet() const { return m_findingsCountHasBeenSet; } /** *

Total number of recommendations found in the code review.

*/ inline void SetFindingsCount(long long value) { m_findingsCountHasBeenSet = true; m_findingsCount = value; } /** *

Total number of recommendations found in the code review.

*/ inline Metrics& WithFindingsCount(long long value) { SetFindingsCount(value); return *this;} private: long long m_meteredLinesOfCodeCount; bool m_meteredLinesOfCodeCountHasBeenSet = false; long long m_suppressedLinesOfCodeCount; bool m_suppressedLinesOfCodeCountHasBeenSet = false; long long m_findingsCount; bool m_findingsCountHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws