public static interface RecommendationSummary.Builder extends SdkPojo, CopyableBuilder<RecommendationSummary.Builder,RecommendationSummary>
| Modifier and Type | Method and Description |
|---|---|
RecommendationSummary.Builder |
description(String description)
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start
line and the end line.
|
RecommendationSummary.Builder |
endLine(Integer endLine)
Last line where the recommendation is applicable in the source commit or source branch.
|
RecommendationSummary.Builder |
filePath(String filePath)
Name of the file on which a recommendation is provided.
|
RecommendationSummary.Builder |
recommendationCategory(RecommendationCategory recommendationCategory)
The type of a recommendation.
|
RecommendationSummary.Builder |
recommendationCategory(String recommendationCategory)
The type of a recommendation.
|
RecommendationSummary.Builder |
recommendationId(String recommendationId)
The recommendation ID that can be used to track the provided recommendations.
|
default RecommendationSummary.Builder |
ruleMetadata(Consumer<RuleMetadata.Builder> ruleMetadata)
Metadata about a rule.
|
RecommendationSummary.Builder |
ruleMetadata(RuleMetadata ruleMetadata)
Metadata about a rule.
|
RecommendationSummary.Builder |
severity(Severity severity)
The severity of the issue in the code that generated this recommendation.
|
RecommendationSummary.Builder |
severity(String severity)
The severity of the issue in the code that generated this recommendation.
|
RecommendationSummary.Builder |
startLine(Integer startLine)
Start line from where the recommendation is applicable in the source commit or source branch.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRecommendationSummary.Builder filePath(String filePath)
Name of the file on which a recommendation is provided.
filePath - Name of the file on which a recommendation is provided.RecommendationSummary.Builder recommendationId(String recommendationId)
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
recommendationId - The recommendation ID that can be used to track the provided recommendations. Later on it can be used
to collect the feedback.RecommendationSummary.Builder startLine(Integer startLine)
Start line from where the recommendation is applicable in the source commit or source branch.
startLine - Start line from where the recommendation is applicable in the source commit or source branch.RecommendationSummary.Builder endLine(Integer 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.
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.RecommendationSummary.Builder description(String description)
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
description - A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the
start line and the end line.RecommendationSummary.Builder recommendationCategory(String recommendationCategory)
The type of a recommendation.
recommendationCategory - The type of a recommendation.RecommendationCategory,
RecommendationCategoryRecommendationSummary.Builder recommendationCategory(RecommendationCategory recommendationCategory)
The type of a recommendation.
recommendationCategory - The type of a recommendation.RecommendationCategory,
RecommendationCategoryRecommendationSummary.Builder ruleMetadata(RuleMetadata ruleMetadata)
Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.
ruleMetadata - Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long
description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in
analysis results if code is detected that violates the rule.default RecommendationSummary.Builder ruleMetadata(Consumer<RuleMetadata.Builder> ruleMetadata)
Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.
This is a convenience method that creates an instance of theRuleMetadata.Builder avoiding the need
to create one manually via RuleMetadata.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to ruleMetadata(RuleMetadata).
ruleMetadata - a consumer that will call methods on RuleMetadata.BuilderruleMetadata(RuleMetadata)RecommendationSummary.Builder severity(String severity)
The severity of the issue in the code that generated this recommendation.
RecommendationSummary.Builder severity(Severity severity)
The severity of the issue in the code that generated this recommendation.
Copyright © 2023. All rights reserved.