Class CodeLocation
java.lang.Object
software.amazon.awssdk.services.securityagent.model.CodeLocation
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CodeLocation.Builder,CodeLocation>
@Generated("software.amazon.awssdk:codegen")
public final class CodeLocation
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<CodeLocation.Builder,CodeLocation>
Represents a location in source code associated with a security finding.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeLocation.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringfilePath()The absolute path to the file containing the code location.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringlabel()The role of this location in the vulnerability, such as source or sink.final IntegerlineEnd()The ending line number of the code location.final IntegerThe starting line number of the code location.static Class<? extends CodeLocation.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
filePath
The absolute path to the file containing the code location.
- Returns:
- The absolute path to the file containing the code location.
-
lineStart
The starting line number of the code location.
- Returns:
- The starting line number of the code location.
-
lineEnd
The ending line number of the code location.
- Returns:
- The ending line number of the code location.
-
label
The role of this location in the vulnerability, such as source or sink.
- Returns:
- The role of this location in the vulnerability, such as source or sink.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CodeLocation.Builder,CodeLocation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-