pub struct Builder { /* private fields */ }Expand description
A builder for RecommendationSummary.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn file_path(self, input: impl Into<String>) -> Self
pub fn file_path(self, input: impl Into<String>) -> Self
Name of the file on which a recommendation is provided.
sourcepub fn set_file_path(self, input: Option<String>) -> Self
pub fn set_file_path(self, input: Option<String>) -> Self
Name of the file on which a recommendation is provided.
sourcepub fn recommendation_id(self, input: impl Into<String>) -> Self
pub fn recommendation_id(self, input: impl Into<String>) -> Self
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
sourcepub fn set_recommendation_id(self, input: Option<String>) -> Self
pub fn set_recommendation_id(self, input: Option<String>) -> Self
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
sourcepub fn start_line(self, input: i32) -> Self
pub fn start_line(self, input: i32) -> Self
Start line from where the recommendation is applicable in the source commit or source branch.
sourcepub fn set_start_line(self, input: Option<i32>) -> Self
pub fn set_start_line(self, input: Option<i32>) -> Self
Start line from where the recommendation is applicable in the source commit or source branch.
sourcepub fn end_line(self, input: i32) -> Self
pub fn end_line(self, input: i32) -> Self
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.
sourcepub fn set_end_line(self, input: Option<i32>) -> Self
pub fn set_end_line(self, input: Option<i32>) -> Self
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.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
sourcepub fn recommendation_category(self, input: RecommendationCategory) -> Self
pub fn recommendation_category(self, input: RecommendationCategory) -> Self
The type of a recommendation.
sourcepub fn set_recommendation_category(
self,
input: Option<RecommendationCategory>
) -> Self
pub fn set_recommendation_category(
self,
input: Option<RecommendationCategory>
) -> Self
The type of a recommendation.
sourcepub fn rule_metadata(self, input: RuleMetadata) -> Self
pub fn rule_metadata(self, input: RuleMetadata) -> Self
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.
sourcepub fn set_rule_metadata(self, input: Option<RuleMetadata>) -> Self
pub fn set_rule_metadata(self, input: Option<RuleMetadata>) -> Self
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.
sourcepub fn severity(self, input: Severity) -> Self
pub fn severity(self, input: Severity) -> Self
The severity of the issue in the code that generated this recommendation.
sourcepub fn set_severity(self, input: Option<Severity>) -> Self
pub fn set_severity(self, input: Option<Severity>) -> Self
The severity of the issue in the code that generated this recommendation.
sourcepub fn build(self) -> RecommendationSummary
pub fn build(self) -> RecommendationSummary
Consumes the builder and constructs a RecommendationSummary.