Class HarnessToolConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,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) Indicates whether some other object is "equal to" this one by SDK fields.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> 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.type()Retrieve an enum value representing which member of this object is populated.Methods 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
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<HarnessToolConfiguration.Builder,HarnessToolConfiguration> - 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
-
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- Returns:
- The mapping between the field name and its corresponding field.
-