@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecommendationSummary extends Object implements Serializable, Cloneable, StructuredPojo
Information about recommendations.
Constructor and Description |
---|
RecommendationSummary() |
Modifier and Type | Method and Description |
---|---|
RecommendationSummary |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line
and the end line.
|
Integer |
getEndLine()
Last line where the recommendation is applicable in the source commit or source branch.
|
String |
getFilePath()
Name of the file on which a recommendation is provided.
|
String |
getRecommendationCategory()
The type of a recommendation.
|
String |
getRecommendationId()
The recommendation ID that can be used to track the provided recommendations.
|
RuleMetadata |
getRuleMetadata()
Metadata about a rule.
|
String |
getSeverity()
The severity of the issue in the code that generated this recommendation.
|
Integer |
getStartLine()
Start line from where the recommendation is applicable in the source commit or source branch.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line
and the end line.
|
void |
setEndLine(Integer endLine)
Last line where the recommendation is applicable in the source commit or source branch.
|
void |
setFilePath(String filePath)
Name of the file on which a recommendation is provided.
|
void |
setRecommendationCategory(String recommendationCategory)
The type of a recommendation.
|
void |
setRecommendationId(String recommendationId)
The recommendation ID that can be used to track the provided recommendations.
|
void |
setRuleMetadata(RuleMetadata ruleMetadata)
Metadata about a rule.
|
void |
setSeverity(String severity)
The severity of the issue in the code that generated this recommendation.
|
void |
setStartLine(Integer startLine)
Start line from where the recommendation is applicable in the source commit or source branch.
|
String |
toString()
Returns a string representation of this object.
|
RecommendationSummary |
withDescription(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 |
withEndLine(Integer endLine)
Last line where the recommendation is applicable in the source commit or source branch.
|
RecommendationSummary |
withFilePath(String filePath)
Name of the file on which a recommendation is provided.
|
RecommendationSummary |
withRecommendationCategory(RecommendationCategory recommendationCategory)
The type of a recommendation.
|
RecommendationSummary |
withRecommendationCategory(String recommendationCategory)
The type of a recommendation.
|
RecommendationSummary |
withRecommendationId(String recommendationId)
The recommendation ID that can be used to track the provided recommendations.
|
RecommendationSummary |
withRuleMetadata(RuleMetadata ruleMetadata)
Metadata about a rule.
|
RecommendationSummary |
withSeverity(Severity severity)
The severity of the issue in the code that generated this recommendation.
|
RecommendationSummary |
withSeverity(String severity)
The severity of the issue in the code that generated this recommendation.
|
RecommendationSummary |
withStartLine(Integer startLine)
Start line from where the recommendation is applicable in the source commit or source branch.
|
public void setFilePath(String filePath)
Name of the file on which a recommendation is provided.
filePath
- Name of the file on which a recommendation is provided.public String getFilePath()
Name of the file on which a recommendation is provided.
public RecommendationSummary withFilePath(String filePath)
Name of the file on which a recommendation is provided.
filePath
- Name of the file on which a recommendation is provided.public void setRecommendationId(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.public String getRecommendationId()
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
public RecommendationSummary withRecommendationId(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.public void setStartLine(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.public Integer getStartLine()
Start line from where the recommendation is applicable in the source commit or source branch.
public RecommendationSummary withStartLine(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.public void setEndLine(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.public Integer getEndLine()
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.
public RecommendationSummary withEndLine(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.public void setDescription(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.public String getDescription()
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
public RecommendationSummary withDescription(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.public void setRecommendationCategory(String recommendationCategory)
The type of a recommendation.
recommendationCategory
- The type of a recommendation.RecommendationCategory
public String getRecommendationCategory()
The type of a recommendation.
RecommendationCategory
public RecommendationSummary withRecommendationCategory(String recommendationCategory)
The type of a recommendation.
recommendationCategory
- The type of a recommendation.RecommendationCategory
public RecommendationSummary withRecommendationCategory(RecommendationCategory recommendationCategory)
The type of a recommendation.
recommendationCategory
- The type of a recommendation.RecommendationCategory
public void setRuleMetadata(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.public RuleMetadata getRuleMetadata()
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.
public RecommendationSummary withRuleMetadata(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.public void setSeverity(String severity)
The severity of the issue in the code that generated this recommendation.
severity
- The severity of the issue in the code that generated this recommendation.Severity
public String getSeverity()
The severity of the issue in the code that generated this recommendation.
Severity
public RecommendationSummary withSeverity(String severity)
The severity of the issue in the code that generated this recommendation.
severity
- The severity of the issue in the code that generated this recommendation.Severity
public RecommendationSummary withSeverity(Severity severity)
The severity of the issue in the code that generated this recommendation.
severity
- The severity of the issue in the code that generated this recommendation.Severity
public String toString()
toString
in class Object
Object.toString()
public RecommendationSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.