@Generated(value="software.amazon.awssdk:codegen") public final class RecommendationSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RecommendationSummary.Builder,RecommendationSummary>
Information about recommendations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RecommendationSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RecommendationSummary.Builder |
builder() |
String |
description()
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line
and the end line.
|
Integer |
endLine()
Last line where the recommendation is applicable in the source commit or source branch.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
filePath()
Name of the file on which a recommendation is provided.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
RecommendationCategory |
recommendationCategory()
The type of a recommendation.
|
String |
recommendationCategoryAsString()
The type of a recommendation.
|
String |
recommendationId()
The recommendation ID that can be used to track the provided recommendations.
|
RuleMetadata |
ruleMetadata()
Metadata about a rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RecommendationSummary.Builder> |
serializableBuilderClass() |
Severity |
severity()
The severity of the issue in the code that generated this recommendation.
|
String |
severityAsString()
The severity of the issue in the code that generated this recommendation.
|
Integer |
startLine()
Start line from where the recommendation is applicable in the source commit or source branch.
|
RecommendationSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String filePath()
Name of the file on which a recommendation is provided.
public final String recommendationId()
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
public final Integer startLine()
Start line from where the recommendation is applicable in the source commit or source branch.
public final 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.
public final String description()
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
public final RecommendationCategory recommendationCategory()
The type of a recommendation.
If the service returns an enum value that is not available in the current SDK version,
recommendationCategory will return RecommendationCategory.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from recommendationCategoryAsString().
RecommendationCategorypublic final String recommendationCategoryAsString()
The type of a recommendation.
If the service returns an enum value that is not available in the current SDK version,
recommendationCategory will return RecommendationCategory.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from recommendationCategoryAsString().
RecommendationCategorypublic final 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.
public final Severity severity()
The severity of the issue in the code that generated this recommendation.
If the service returns an enum value that is not available in the current SDK version, severity will
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Severitypublic final String severityAsString()
The severity of the issue in the code that generated this recommendation.
If the service returns an enum value that is not available in the current SDK version, severity will
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Severitypublic RecommendationSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RecommendationSummary.Builder,RecommendationSummary>public static RecommendationSummary.Builder builder()
public static Class<? extends RecommendationSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.