Class VersionCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class VersionCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
files
final VersionCreateParams.Body.Builder files(List<InputStream> files)
Files to upload for the skill.
All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.
-
files
final VersionCreateParams.Body.Builder files(Optional<List<InputStream>> files)
Alias for calling Builder.files with
files.orElse(null).
-
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.
-
addFile
final VersionCreateParams.Body.Builder addFile(InputStream file)
Adds a single InputStream to files.
-
addFile
final VersionCreateParams.Body.Builder addFile(ByteArray file)
Files to upload for the skill.
All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.
-
addFile
final VersionCreateParams.Body.Builder addFile(Path path)
Files to upload for the skill.
All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.
-
additionalProperties
final VersionCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
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.
-
-
-
-