Interface McpServerDescriptor.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<McpServerDescriptor.Builder,,McpServerDescriptor> SdkBuilder<McpServerDescriptor.Builder,,McpServerDescriptor> SdkPojo
- Enclosing class:
McpServerDescriptor
-
Method Summary
Modifier and TypeMethodDescriptiondefault McpServerDescriptor.BuilderadditionalData(Consumer<McpServerAdditionalData.Builder> additionalData) Additional data associated with the MCP server descriptor, such as tool definitions.additionalData(McpServerAdditionalData additionalData) Additional data associated with the MCP server descriptor, such as tool definitions.The MCP server descriptor content, serialized as descriptor payload data.dataSchemaVersion(String dataSchemaVersion) The schema version of the descriptor payload.default McpServerDescriptor.Buildersource(Consumer<DescriptorSource.Builder> source) The source location from which the MCP (Model Context Protocol) server descriptor content was retrieved.source(DescriptorSource source) The source location from which the MCP (Model Context Protocol) server descriptor content was retrieved.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
data
The MCP server descriptor content, serialized as descriptor payload data.
- Parameters:
data- The MCP server descriptor content, serialized as descriptor payload data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSchemaVersion
The schema version of the descriptor payload.
- Parameters:
dataSchemaVersion- The schema version of the descriptor payload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalData
Additional data associated with the MCP server descriptor, such as tool definitions.
- Parameters:
additionalData- Additional data associated with the MCP server descriptor, such as tool definitions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalData
default McpServerDescriptor.Builder additionalData(Consumer<McpServerAdditionalData.Builder> additionalData) Additional data associated with the MCP server descriptor, such as tool definitions.
This is a convenience method that creates an instance of theMcpServerAdditionalData.Builderavoiding the need to create one manually viaMcpServerAdditionalData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadditionalData(McpServerAdditionalData).- Parameters:
additionalData- a consumer that will call methods onMcpServerAdditionalData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The source location from which the MCP (Model Context Protocol) server descriptor content was retrieved.
- Parameters:
source- The source location from which the MCP (Model Context Protocol) server descriptor content was retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source location from which the MCP (Model Context Protocol) server descriptor content was retrieved.
This is a convenience method that creates an instance of theDescriptorSource.Builderavoiding the need to create one manually viaDescriptorSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(DescriptorSource).- Parameters:
source- a consumer that will call methods onDescriptorSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-