Class PluginCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class PluginCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
Modifier and Type Method Description final PluginCreateParams.Body.Builderfiles(List<InputStream> files)The version's files: one part per file, the part's filename being the file's path within the Plugin (for example skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all.final PluginCreateParams.Body.Builderfiles(MultipartField<List<InputStream>> files)Sets Builder.files to an arbitrary multipart value. final PluginCreateParams.Body.BuildermarketplaceId(String marketplaceId)ID of the organization-owned plugin marketplace to create the Plugin in (prefixed marketplace_).final PluginCreateParams.Body.BuildermarketplaceId(MultipartField<String> marketplaceId)Sets Builder.marketplaceId to an arbitrary multipart value. final PluginCreateParams.Body.BuilderreleaseNotes(String releaseNotes)Release notes stored with the version and shown in its version history in claude.ai; up to 5,000 characters. final PluginCreateParams.Body.BuilderreleaseNotes(MultipartField<String> releaseNotes)Sets Builder.releaseNotes to an arbitrary multipart value. final PluginCreateParams.Body.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final PluginCreateParams.Body.BuilderaddFile(InputStream file)Adds a single InputStream to files. final PluginCreateParams.Body.BuilderaddFile(ByteArray file)The version's files: one part per file, the part's filename being the file's path within the Plugin (for example skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all.final PluginCreateParams.Body.BuilderaddFile(Path path)The version's files: one part per file, the part's filename being the file's path within the Plugin (for example skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all.final PluginCreateParams.Body.BuilderputAdditionalProperty(String key, JsonValue value)final PluginCreateParams.Body.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final PluginCreateParams.Body.BuilderremoveAdditionalProperty(String key)final PluginCreateParams.Body.BuilderremoveAllAdditionalProperties(Set<String> keys)final PluginCreateParams.Bodybuild()Returns an immutable instance of Body. -
-
Method Detail
-
files
final PluginCreateParams.Body.Builder files(List<InputStream> files)
The version's files: one part per file, the part's filename being the file's path within the Plugin (for example
skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all. On the wire each part is namedfiles[], and a part named plainfilesis not read; with cURL,-F 'files[]=@SKILL.md;filename=skills/review-pr/SKILL.md'. The files must include the manifest,.claude-plugin/plugin.json.
-
files
final PluginCreateParams.Body.Builder files(MultipartField<List<InputStream>> files)
Sets Builder.files to an arbitrary multipart value.
You should usually call Builder.files with a well-typed
List<InputStream>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
marketplaceId
final PluginCreateParams.Body.Builder marketplaceId(String marketplaceId)
ID of the organization-owned plugin marketplace to create the Plugin in (prefixed
marketplace_). It must be amanualmarketplace, one whose Plugins are uploaded rather than synchronized from a repository. When omitted, the Plugin is created in the organization's library marketplace, an organization-ownedmanualmarketplace created on first use.
-
marketplaceId
final PluginCreateParams.Body.Builder marketplaceId(MultipartField<String> marketplaceId)
Sets Builder.marketplaceId to an arbitrary multipart value.
You should usually call Builder.marketplaceId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
releaseNotes
final PluginCreateParams.Body.Builder releaseNotes(String releaseNotes)
Release notes stored with the version and shown in its version history in claude.ai; up to 5,000 characters.
-
releaseNotes
final PluginCreateParams.Body.Builder releaseNotes(MultipartField<String> releaseNotes)
Sets Builder.releaseNotes to an arbitrary multipart value.
You should usually call Builder.releaseNotes with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PluginCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addFile
final PluginCreateParams.Body.Builder addFile(InputStream file)
Adds a single InputStream to files.
-
addFile
final PluginCreateParams.Body.Builder addFile(ByteArray file)
The version's files: one part per file, the part's filename being the file's path within the Plugin (for example
skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all. On the wire each part is namedfiles[], and a part named plainfilesis not read; with cURL,-F 'files[]=@SKILL.md;filename=skills/review-pr/SKILL.md'. The files must include the manifest,.claude-plugin/plugin.json.
-
addFile
final PluginCreateParams.Body.Builder addFile(Path path)
The version's files: one part per file, the part's filename being the file's path within the Plugin (for example
skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all. On the wire each part is namedfiles[], and a part named plainfilesis not read; with cURL,-F 'files[]=@SKILL.md;filename=skills/review-pr/SKILL.md'. The files must include the manifest,.claude-plugin/plugin.json.
-
putAdditionalProperty
final PluginCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PluginCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PluginCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PluginCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PluginCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.files()
-
-
-
-