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

Information about recommendations.

See Also:

AWS * API Reference

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

Name of the file on which a recommendation is provided.

*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *

Name of the file on which a recommendation is provided.

*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *

Name of the file on which a recommendation is provided.

*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *

Name of the file on which a recommendation is provided.

*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *

Name of the file on which a recommendation is provided.

*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *

Name of the file on which a recommendation is provided.

*/ inline RecommendationSummary& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *

Name of the file on which a recommendation is provided.

*/ inline RecommendationSummary& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *

Name of the file on which a recommendation is provided.

*/ inline RecommendationSummary& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; } /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; } /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; } /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); } /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); } /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline RecommendationSummary& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;} /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline RecommendationSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;} /** *

The recommendation ID that can be used to track the provided * recommendations. Later on it can be used to collect the feedback.

*/ inline RecommendationSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;} /** *

Start line from where the recommendation is applicable in the source commit * or source branch.

*/ inline int GetStartLine() const{ return m_startLine; } /** *

Start line from where the recommendation is applicable in the source commit * or source branch.

*/ inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; } /** *

Start line from where the recommendation is applicable in the source commit * or source branch.

*/ inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; } /** *

Start line from where the recommendation is applicable in the source commit * or source branch.

*/ inline RecommendationSummary& WithStartLine(int value) { SetStartLine(value); return *this;} /** *

Last line where the recommendation is applicable in the source commit or * source branch. For a single line comment the start line and end line values are * the same.

*/ inline int GetEndLine() const{ return m_endLine; } /** *

Last line where the recommendation is applicable in the source commit or * source branch. For a single line comment the start line and end line values are * the same.

*/ inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; } /** *

Last line where the recommendation is applicable in the source commit or * source branch. For a single line comment the start line and end line values are * the same.

*/ inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; } /** *

Last line where the recommendation is applicable in the source commit or * source branch. For a single line comment the start line and end line values are * the same.

*/ inline RecommendationSummary& WithEndLine(int value) { SetEndLine(value); return *this;} /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline RecommendationSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline RecommendationSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the recommendation generated by CodeGuru Reviewer for the * lines of code between the start line and the end line.

*/ inline RecommendationSummary& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_filePath; bool m_filePathHasBeenSet; Aws::String m_recommendationId; bool m_recommendationIdHasBeenSet; int m_startLine; bool m_startLineHasBeenSet; int m_endLine; bool m_endLineHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; }; } // namespace Model } // namespace CodeGuruReviewer } // namespace Aws