Class SkillVersion.Builder
-
- All Implemented Interfaces:
public final class SkillVersion.BuilderA builder for SkillVersion.
-
-
Method Summary
Modifier and Type Method Description final SkillVersion.Builderid(String id)Unique identifier for this Skill Version. final SkillVersion.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final SkillVersion.BuildercreatedAt(OffsetDateTime createdAt)ISO 8601 timestamp of when the skill was created. final SkillVersion.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final SkillVersion.Builderdescription(String description)Description of the skill version. final SkillVersion.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final SkillVersion.Buildername(String name)The Skill's immutable kebab-case slug, set at creation from the first upload's SKILL. final SkillVersion.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final SkillVersion.BuilderskillId(String skillId)Unique identifier for the skill. final SkillVersion.BuilderskillId(JsonField<String> skillId)Sets Builder.skillId to an arbitrary JSON value. final SkillVersion.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final SkillVersion.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final SkillVersion.BuilderputAdditionalProperty(String key, JsonValue value)final SkillVersion.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final SkillVersion.BuilderremoveAdditionalProperty(String key)final SkillVersion.BuilderremoveAllAdditionalProperties(Set<String> keys)final SkillVersionbuild()Returns an immutable instance of SkillVersion. -
-
Method Detail
-
id
final SkillVersion.Builder id(String id)
Unique identifier for this Skill Version. The id addresses the version in paths and pins it in references.
-
id
final SkillVersion.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final SkillVersion.Builder createdAt(OffsetDateTime createdAt)
ISO 8601 timestamp of when the skill was created.
-
createdAt
final SkillVersion.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final SkillVersion.Builder description(String description)
Description of the skill version.
This is extracted from the SKILL.md file in the skill upload.
-
description
final SkillVersion.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final SkillVersion.Builder name(String name)
The Skill's immutable kebab-case slug, set at creation from the first upload's SKILL.md frontmatter
name(or its enclosing directory). Every later upload must resolve to the same value. Also the top-level directory of the Skill's mounted files and the base name of a downloaded archive.
-
name
final SkillVersion.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skillId
final SkillVersion.Builder skillId(String skillId)
Unique identifier for the skill.
The format and length of IDs may change over time.
-
skillId
final SkillVersion.Builder skillId(JsonField<String> skillId)
Sets Builder.skillId to an arbitrary JSON value.
You should usually call Builder.skillId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final SkillVersion.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("skill_version")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SkillVersion.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SkillVersion.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SkillVersion.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SkillVersion.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SkillVersion.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SkillVersion build()
Returns an immutable instance of SkillVersion.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .description() .name() .skillId()
-
-
-
-