Class CodeLocation
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CodeLocation.Builder,CodeLocation>
Identifies a code location to instrument, including the programming language, code unit, class, method, file path, and optional line number.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeLocation.Builderbuilder()final StringThe class or type name that contains the method.final StringcodeUnit()The package, module, or namespace that contains the target code, for examplecom.amazon.paymentorpayment_service.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringfilePath()The source file path relative to the project or source root, such assrc/payment/PaymentProcessor.javaorsrc/payment/PaymentProcessor.py.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ProgrammingLanguagelanguage()The programming language for this instrumentation point, such as Java, Python, or JavaScript.final StringThe programming language for this instrumentation point, such as Java, Python, or JavaScript.final IntegerThe line number to instrument.final StringThe method or function name to instrument, such asvalidateCreditCardor__init__.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
-
language
The programming language for this instrumentation point, such as Java, Python, or JavaScript.
If the service returns an enum value that is not available in the current SDK version,
languagewill returnProgrammingLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageAsString().- Returns:
- The programming language for this instrumentation point, such as Java, Python, or JavaScript.
- See Also:
-
languageAsString
The programming language for this instrumentation point, such as Java, Python, or JavaScript.
If the service returns an enum value that is not available in the current SDK version,
languagewill returnProgrammingLanguage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlanguageAsString().- Returns:
- The programming language for this instrumentation point, such as Java, Python, or JavaScript.
- See Also:
-
codeUnit
The package, module, or namespace that contains the target code, for example
com.amazon.paymentorpayment_service.- Returns:
- The package, module, or namespace that contains the target code, for example
com.amazon.paymentorpayment_service.
-
className
The class or type name that contains the method. This is required for Java and optional for Python module-level functions.
- Returns:
- The class or type name that contains the method. This is required for Java and optional for Python module-level functions.
-
methodName
The method or function name to instrument, such as
validateCreditCardor__init__.- Returns:
- The method or function name to instrument, such as
validateCreditCardor__init__.
-
filePath
The source file path relative to the project or source root, such as
src/payment/PaymentProcessor.javaorsrc/payment/PaymentProcessor.py.- Returns:
- The source file path relative to the project or source root, such as
src/payment/PaymentProcessor.javaorsrc/payment/PaymentProcessor.py.
-
lineNumber
The line number to instrument. Provide this to disambiguate overloaded methods and to target a specific line when needed.
- Returns:
- The line number to instrument. Provide this to disambiguate overloaded methods and to target a specific line when needed.
-
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.
-