java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.ToolsDefinition
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ToolsDefinition.Builder,ToolsDefinition>

@Generated("software.amazon.awssdk:codegen") public final class ToolsDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ToolsDefinition.Builder,ToolsDefinition>

The MCP tools definition with a protocol version and inline content. The protocolVersion identifies the MCP protocol version that the tools conform to. This differs from schemaVersion in the server definition, which identifies the server configuration schema format.

See Also:
  • Method Details

    • protocolVersion

      public final String protocolVersion()

      The MCP protocol version that the tools conform to. This differs from the schemaVersion field in the server definition, which identifies the server configuration schema format.

      Returns:
      The MCP protocol version that the tools conform to. This differs from the schemaVersion field in the server definition, which identifies the server configuration schema format.
    • inlineContent

      public final String inlineContent()

      The inline content of the tools definition.

      Returns:
      The inline content of the tools definition.
    • toBuilder

      public ToolsDefinition.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<ToolsDefinition.Builder,ToolsDefinition>
    • builder

      public static ToolsDefinition.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ToolsDefinition.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo