Class Metrics
- java.lang.Object
-
- software.amazon.awssdk.services.codegurureviewer.model.Metrics
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Metrics.Builder,Metrics>
@Generated("software.amazon.awssdk:codegen") public final class Metrics extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Metrics.Builder,Metrics>
Information about the statistics from the code review.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetrics.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Metrics.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)LongfindingsCount()Total number of recommendations found in the code review.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongmeteredLinesOfCodeCount()MeteredLinesOfCodeCountis the number of lines of code in the repository where the code review happened.List<SdkField<?>>sdkFields()static Class<? extends Metrics.Builder>serializableBuilderClass()LongsuppressedLinesOfCodeCount()SuppressedLinesOfCodeCountis the number of lines of code in the repository where the code review happened that CodeGuru Reviewer did not analyze.Metrics.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
meteredLinesOfCodeCount
public final Long meteredLinesOfCodeCount()
MeteredLinesOfCodeCountis the number of lines of code in the repository where the code review happened. This does not include non-code lines such as comments and blank lines.- Returns:
MeteredLinesOfCodeCountis the number of lines of code in the repository where the code review happened. This does not include non-code lines such as comments and blank lines.
-
suppressedLinesOfCodeCount
public final Long suppressedLinesOfCodeCount()
SuppressedLinesOfCodeCountis the number of lines of code in the repository where the code review happened that CodeGuru Reviewer did not analyze. The lines suppressed in the analysis is based on theexcludeFilesvariable in theaws-codeguru-reviewer.ymlfile. This number does not include non-code lines such as comments and blank lines.- Returns:
SuppressedLinesOfCodeCountis the number of lines of code in the repository where the code review happened that CodeGuru Reviewer did not analyze. The lines suppressed in the analysis is based on theexcludeFilesvariable in theaws-codeguru-reviewer.ymlfile. This number does not include non-code lines such as comments and blank lines.
-
findingsCount
public final Long findingsCount()
Total number of recommendations found in the code review.
- Returns:
- Total number of recommendations found in the code review.
-
toBuilder
public Metrics.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Metrics.Builder,Metrics>
-
builder
public static Metrics.Builder builder()
-
serializableBuilderClass
public static Class<? extends Metrics.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-