Class McpImplementation.Builder
java.lang.Object
com.soklet.McpImplementation.Builder
- Enclosing class:
McpImplementation
Builder for immutable
McpImplementation values.
This class is intended for use by a single thread.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds immutable implementation metadata.description(@NonNull String description) Sets a human-readable description.Sets a human-readable title.websiteUrl(@NonNull URI websiteUrl) Sets the implementation website URI.
-
Method Details
-
title
Sets a human-readable title. A blank title is treated as absent.- Parameters:
title- the implementation title- Returns:
- this builder
-
description
Sets a human-readable description. A blank description is treated as absent.- Parameters:
description- the implementation description- Returns:
- this builder
-
websiteUrl
Sets the implementation website URI.- Parameters:
websiteUrl- the absolute website URI- Returns:
- this builder
- Throws:
IllegalArgumentException- if the URI is relative
-
build
Builds immutable implementation metadata.- Returns:
- the implementation metadata
-