Interface InvocationLogsConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InvocationLogsConfig.Builder,
,InvocationLogsConfig> SdkBuilder<InvocationLogsConfig.Builder,
,InvocationLogsConfig> SdkPojo
- Enclosing class:
InvocationLogsConfig
@Mutable
@NotThreadSafe
public static interface InvocationLogsConfig.Builder
extends SdkPojo, CopyableBuilder<InvocationLogsConfig.Builder,InvocationLogsConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault InvocationLogsConfig.Builder
invocationLogSource
(Consumer<InvocationLogSource.Builder> invocationLogSource) The source of the invocation logs.invocationLogSource
(InvocationLogSource invocationLogSource) The source of the invocation logs.default InvocationLogsConfig.Builder
requestMetadataFilters
(Consumer<RequestMetadataFilters.Builder> requestMetadataFilters) Rules for filtering invocation logs based on request metadata.requestMetadataFilters
(RequestMetadataFilters requestMetadataFilters) Rules for filtering invocation logs based on request metadata.usePromptResponse
(Boolean usePromptResponse) Whether to use the model's response for training, or just the prompt.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
usePromptResponse
Whether to use the model's response for training, or just the prompt. The default value is
False
.- Parameters:
usePromptResponse
- Whether to use the model's response for training, or just the prompt. The default value isFalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invocationLogSource
The source of the invocation logs.
- Parameters:
invocationLogSource
- The source of the invocation logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invocationLogSource
default InvocationLogsConfig.Builder invocationLogSource(Consumer<InvocationLogSource.Builder> invocationLogSource) The source of the invocation logs.
This is a convenience method that creates an instance of theInvocationLogSource.Builder
avoiding the need to create one manually viaInvocationLogSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinvocationLogSource(InvocationLogSource)
.- Parameters:
invocationLogSource
- a consumer that will call methods onInvocationLogSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestMetadataFilters
Rules for filtering invocation logs based on request metadata.
- Parameters:
requestMetadataFilters
- Rules for filtering invocation logs based on request metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestMetadataFilters
default InvocationLogsConfig.Builder requestMetadataFilters(Consumer<RequestMetadataFilters.Builder> requestMetadataFilters) Rules for filtering invocation logs based on request metadata.
This is a convenience method that creates an instance of theRequestMetadataFilters.Builder
avoiding the need to create one manually viaRequestMetadataFilters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequestMetadataFilters(RequestMetadataFilters)
.- Parameters:
requestMetadataFilters
- a consumer that will call methods onRequestMetadataFilters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-