Class BetaSkillVersion.Builder
-
- All Implemented Interfaces:
public final class BetaSkillVersion.BuilderA builder for BetaSkillVersion.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaSkillVersion.Builder id(String id)
Unique identifier for this Skill Version. The id addresses the version in paths and pins it in references.
-
id
final BetaSkillVersion.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 BetaSkillVersion.Builder createdAt(OffsetDateTime createdAt)
ISO 8601 timestamp of when the skill was created.
-
createdAt
final BetaSkillVersion.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 BetaSkillVersion.Builder description(String description)
Description of the skill version.
This is extracted from the SKILL.md file in the skill upload.
-
description
final BetaSkillVersion.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 BetaSkillVersion.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 BetaSkillVersion.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 BetaSkillVersion.Builder skillId(String skillId)
Unique identifier for the skill.
The format and length of IDs may change over time.
-
skillId
final BetaSkillVersion.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 BetaSkillVersion.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 BetaSkillVersion.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaSkillVersion.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSkillVersion.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSkillVersion.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSkillVersion.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaSkillVersion build()
Returns an immutable instance of BetaSkillVersion.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .description() .name() .skillId()
-
-
-
-