Interface Location.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Location.Builder,,Location> SdkBuilder<Location.Builder,,Location> SdkPojo
- Enclosing class:
Location
@Mutable
@NotThreadSafe
public static interface Location.Builder
extends SdkPojo, CopyableBuilder<Location.Builder,Location>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Location.BuildercodeLocation(Consumer<CodeLocation.Builder> codeLocation) A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.codeLocation(CodeLocation codeLocation) A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
codeLocation
A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.
- Parameters:
codeLocation- A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeLocation
A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.
This is a convenience method that creates an instance of theCodeLocation.Builderavoiding the need to create one manually viaCodeLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodeLocation(CodeLocation).- Parameters:
codeLocation- a consumer that will call methods onCodeLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-