Class HarnessToolConfiguration
java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.HarnessToolConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HarnessToolConfiguration.Builder,HarnessToolConfiguration>
@Generated("software.amazon.awssdk:codegen")
public final class HarnessToolConfiguration
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<HarnessToolConfiguration.Builder,HarnessToolConfiguration>
Configuration union for different tool types.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionConfiguration for AgentCore Browser.Configuration for AgentCore Code Interpreter.Configuration for AgentCore Gateway.builder()final booleanfinal booleanequalsBySdkFields(Object obj) static HarnessToolConfigurationfromAgentCoreBrowser(Consumer<HarnessAgentCoreBrowserConfig.Builder> agentCoreBrowser) Create an instance of this class withagentCoreBrowser()initialized to the given value.static HarnessToolConfigurationfromAgentCoreBrowser(HarnessAgentCoreBrowserConfig agentCoreBrowser) Create an instance of this class withagentCoreBrowser()initialized to the given value.static HarnessToolConfigurationfromAgentCoreCodeInterpreter(Consumer<HarnessAgentCoreCodeInterpreterConfig.Builder> agentCoreCodeInterpreter) Create an instance of this class withagentCoreCodeInterpreter()initialized to the given value.static HarnessToolConfigurationfromAgentCoreCodeInterpreter(HarnessAgentCoreCodeInterpreterConfig agentCoreCodeInterpreter) Create an instance of this class withagentCoreCodeInterpreter()initialized to the given value.static HarnessToolConfigurationfromAgentCoreGateway(Consumer<HarnessAgentCoreGatewayConfig.Builder> agentCoreGateway) Create an instance of this class withagentCoreGateway()initialized to the given value.static HarnessToolConfigurationfromAgentCoreGateway(HarnessAgentCoreGatewayConfig agentCoreGateway) Create an instance of this class withagentCoreGateway()initialized to the given value.static HarnessToolConfigurationfromInlineFunction(Consumer<HarnessInlineFunctionConfig.Builder> inlineFunction) Create an instance of this class withinlineFunction()initialized to the given value.static HarnessToolConfigurationfromInlineFunction(HarnessInlineFunctionConfig inlineFunction) Create an instance of this class withinlineFunction()initialized to the given value.static HarnessToolConfigurationfromRemoteMcp(Consumer<HarnessRemoteMcpConfig.Builder> remoteMcp) Create an instance of this class withremoteMcp()initialized to the given value.static HarnessToolConfigurationfromRemoteMcp(HarnessRemoteMcpConfig remoteMcp) Create an instance of this class withremoteMcp()initialized to the given value.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()Configuration for an inline function tool.final HarnessRemoteMcpConfigConfiguration for remote MCP server.static Class<? extends HarnessToolConfiguration.Builder>final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
remoteMcp
Configuration for remote MCP server.
- Returns:
- Configuration for remote MCP server.
-
agentCoreBrowser
Configuration for AgentCore Browser.
- Returns:
- Configuration for AgentCore Browser.
-
agentCoreGateway
Configuration for AgentCore Gateway.
- Returns:
- Configuration for AgentCore Gateway.
-
inlineFunction
Configuration for an inline function tool.
- Returns:
- Configuration for an inline function tool.
-
agentCoreCodeInterpreter
Configuration for AgentCore Code Interpreter.
- Returns:
- Configuration for AgentCore Code Interpreter.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<HarnessToolConfiguration.Builder,HarnessToolConfiguration>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
fromRemoteMcp
Create an instance of this class withremoteMcp()initialized to the given value.Configuration for remote MCP server.
- Parameters:
remoteMcp- Configuration for remote MCP server.
-
fromRemoteMcp
public static HarnessToolConfiguration fromRemoteMcp(Consumer<HarnessRemoteMcpConfig.Builder> remoteMcp) Create an instance of this class withremoteMcp()initialized to the given value.Configuration for remote MCP server.
- Parameters:
remoteMcp- Configuration for remote MCP server.
-
fromAgentCoreBrowser
public static HarnessToolConfiguration fromAgentCoreBrowser(HarnessAgentCoreBrowserConfig agentCoreBrowser) Create an instance of this class withagentCoreBrowser()initialized to the given value.Configuration for AgentCore Browser.
- Parameters:
agentCoreBrowser- Configuration for AgentCore Browser.
-
fromAgentCoreBrowser
public static HarnessToolConfiguration fromAgentCoreBrowser(Consumer<HarnessAgentCoreBrowserConfig.Builder> agentCoreBrowser) Create an instance of this class withagentCoreBrowser()initialized to the given value.Configuration for AgentCore Browser.
- Parameters:
agentCoreBrowser- Configuration for AgentCore Browser.
-
fromAgentCoreGateway
public static HarnessToolConfiguration fromAgentCoreGateway(HarnessAgentCoreGatewayConfig agentCoreGateway) Create an instance of this class withagentCoreGateway()initialized to the given value.Configuration for AgentCore Gateway.
- Parameters:
agentCoreGateway- Configuration for AgentCore Gateway.
-
fromAgentCoreGateway
public static HarnessToolConfiguration fromAgentCoreGateway(Consumer<HarnessAgentCoreGatewayConfig.Builder> agentCoreGateway) Create an instance of this class withagentCoreGateway()initialized to the given value.Configuration for AgentCore Gateway.
- Parameters:
agentCoreGateway- Configuration for AgentCore Gateway.
-
fromInlineFunction
public static HarnessToolConfiguration fromInlineFunction(HarnessInlineFunctionConfig inlineFunction) Create an instance of this class withinlineFunction()initialized to the given value.Configuration for an inline function tool.
- Parameters:
inlineFunction- Configuration for an inline function tool.
-
fromInlineFunction
public static HarnessToolConfiguration fromInlineFunction(Consumer<HarnessInlineFunctionConfig.Builder> inlineFunction) Create an instance of this class withinlineFunction()initialized to the given value.Configuration for an inline function tool.
- Parameters:
inlineFunction- Configuration for an inline function tool.
-
fromAgentCoreCodeInterpreter
public static HarnessToolConfiguration fromAgentCoreCodeInterpreter(HarnessAgentCoreCodeInterpreterConfig agentCoreCodeInterpreter) Create an instance of this class withagentCoreCodeInterpreter()initialized to the given value.Configuration for AgentCore Code Interpreter.
- Parameters:
agentCoreCodeInterpreter- Configuration for AgentCore Code Interpreter.
-
fromAgentCoreCodeInterpreter
public static HarnessToolConfiguration fromAgentCoreCodeInterpreter(Consumer<HarnessAgentCoreCodeInterpreterConfig.Builder> agentCoreCodeInterpreter) Create an instance of this class withagentCoreCodeInterpreter()initialized to the given value.Configuration for AgentCore Code Interpreter.
- Parameters:
agentCoreCodeInterpreter- Configuration for AgentCore Code Interpreter.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beHarnessToolConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beHarnessToolConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-