Class ToolSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockruntime.model.ToolSpecification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ToolSpecification.Builder,ToolSpecification>
@Generated("software.amazon.awssdk:codegen") public final class ToolSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ToolSpecification.Builder,ToolSpecification>
The specification for the tool.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceToolSpecification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ToolSpecification.Builderbuilder()Stringdescription()The description for the tool.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ToolInputSchemainputSchema()The input schema for the tool in JSON format.Stringname()The name for the tool.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ToolSpecification.Builder>serializableBuilderClass()ToolSpecification.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name for the tool.
- Returns:
- The name for the tool.
-
description
public final String description()
The description for the tool.
- Returns:
- The description for the tool.
-
inputSchema
public final ToolInputSchema inputSchema()
The input schema for the tool in JSON format.
- Returns:
- The input schema for the tool in JSON format.
-
toBuilder
public ToolSpecification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ToolSpecification.Builder,ToolSpecification>
-
builder
public static ToolSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends ToolSpecification.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-