Interface CodeCaptureConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CodeCaptureConfiguration.Builder,,CodeCaptureConfiguration> SdkBuilder<CodeCaptureConfiguration.Builder,,CodeCaptureConfiguration> SdkPojo
- Enclosing class:
CodeCaptureConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncaptureArguments(String... captureArguments) The function arguments to capture.captureArguments(Collection<String> captureArguments) The function arguments to capture.default CodeCaptureConfiguration.BuildercaptureLimits(Consumer<CaptureLimitsConfig.Builder> captureLimits) Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.captureLimits(CaptureLimitsConfig captureLimits) Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.captureLocals(String... captureLocals) The local variables to capture by name.captureLocals(Collection<String> captureLocals) The local variables to capture by name.captureReturn(Boolean captureReturn) Whether to capture the return value.captureStackTrace(Boolean captureStackTrace) Whether to capture a stack trace when the instrumentation point is hit.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
-
captureArguments
The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use
["*"]to capture all arguments, or specify argument names to capture selectively (up to 10 entries).- Parameters:
captureArguments- The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use["*"]to capture all arguments, or specify argument names to capture selectively (up to 10 entries).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureArguments
The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use
["*"]to capture all arguments, or specify argument names to capture selectively (up to 10 entries).- Parameters:
captureArguments- The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use["*"]to capture all arguments, or specify argument names to capture selectively (up to 10 entries).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureReturn
Whether to capture the return value. Defaults to false.
- Parameters:
captureReturn- Whether to capture the return value. Defaults to false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureStackTrace
Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.
- Parameters:
captureStackTrace- Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureLocals
The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.
- Parameters:
captureLocals- The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureLocals
The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.
- Parameters:
captureLocals- The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureLimits
Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.
- Parameters:
captureLimits- Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureLimits
default CodeCaptureConfiguration.Builder captureLimits(Consumer<CaptureLimitsConfig.Builder> captureLimits) Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.
This is a convenience method that creates an instance of theCaptureLimitsConfig.Builderavoiding the need to create one manually viaCaptureLimitsConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocaptureLimits(CaptureLimitsConfig).- Parameters:
captureLimits- a consumer that will call methods onCaptureLimitsConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-