Class VersionCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class VersionCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
Modifier and Type Method Description final VersionCreateParams.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 VersionCreateParams.Body.Builderfiles(MultipartField<List<InputStream>> files)Sets Builder.files to an arbitrary multipart value. final VersionCreateParams.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 VersionCreateParams.Body.BuilderreleaseNotes(MultipartField<String> releaseNotes)Sets Builder.releaseNotes to an arbitrary multipart value. final VersionCreateParams.Body.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final VersionCreateParams.Body.BuilderaddFile(InputStream file)Adds a single InputStream to files. final VersionCreateParams.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 VersionCreateParams.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 VersionCreateParams.Body.BuilderputAdditionalProperty(String key, JsonValue value)final VersionCreateParams.Body.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final VersionCreateParams.Body.BuilderremoveAdditionalProperty(String key)final VersionCreateParams.Body.BuilderremoveAllAdditionalProperties(Set<String> keys)final VersionCreateParams.Bodybuild()Returns an immutable instance of Body. -
-
Method Detail
-
files
final VersionCreateParams.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 VersionCreateParams.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.
-
releaseNotes
final VersionCreateParams.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 VersionCreateParams.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 VersionCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addFile
final VersionCreateParams.Body.Builder addFile(InputStream file)
Adds a single InputStream to files.
-
addFile
final VersionCreateParams.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 VersionCreateParams.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 VersionCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VersionCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VersionCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VersionCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VersionCreateParams.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()
-
-
-
-