Class Skill.Builder
-
- All Implemented Interfaces:
public final class Skill.BuilderA builder for Skill.
-
-
Method Summary
Modifier and Type Method Description final Skill.Builderid(String id)Unique identifier for the skill. final Skill.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Skill.BuildercreatedAt(OffsetDateTime createdAt)ISO 8601 timestamp of when the skill was created. final Skill.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final Skill.BuilderdisplayName(String displayName)Human-readable, single-line label for the Skill. final Skill.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final Skill.BuilderlatestVersionId(String latestVersionId)ID of the newest Skill Version — what latestreferences resolve to.final Skill.BuilderlatestVersionId(JsonField<String> latestVersionId)Sets Builder.latestVersionId to an arbitrary JSON value. final Skill.Buildersource(SkillSource source)Where the Skill comes from. final Skill.Buildersource(JsonField<SkillSource> source)Sets Builder.source to an arbitrary JSON value. final Skill.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final Skill.BuilderupdatedAt(OffsetDateTime updatedAt)ISO 8601 timestamp of when the skill was last updated. final Skill.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final Skill.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Skill.BuilderputAdditionalProperty(String key, JsonValue value)final Skill.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Skill.BuilderremoveAdditionalProperty(String key)final Skill.BuilderremoveAllAdditionalProperties(Set<String> keys)final Skillbuild()Returns an immutable instance of Skill. -
-
Method Detail
-
id
final Skill.Builder id(String id)
Unique identifier for the skill.
The format and length of IDs may change over time.
-
id
final Skill.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 Skill.Builder createdAt(OffsetDateTime createdAt)
ISO 8601 timestamp of when the skill was created.
-
createdAt
final Skill.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.
-
displayName
final Skill.Builder displayName(String displayName)
Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter
namewhen omitted at creation. Not unique.
-
displayName
final Skill.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
latestVersionId
final Skill.Builder latestVersionId(String latestVersionId)
ID of the newest Skill Version — what
latestreferences resolve to. Always set: a Skill holds at least one version.
-
latestVersionId
final Skill.Builder latestVersionId(JsonField<String> latestVersionId)
Sets Builder.latestVersionId to an arbitrary JSON value.
You should usually call Builder.latestVersionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final Skill.Builder source(SkillSource source)
Where the Skill comes from.
Possible values:
"custom": authored by the platform user; private to their workspace"anthropic": published by Anthropic; shared and read-only"anthropic_example": Anthropic-published sample Skill"plugin": resolved from an installed plugin
-
source
final Skill.Builder source(JsonField<SkillSource> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed SkillSource value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final Skill.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")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final Skill.Builder updatedAt(OffsetDateTime updatedAt)
ISO 8601 timestamp of when the skill was last updated.
-
updatedAt
final Skill.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Skill.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Skill.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Skill.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Skill.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Skill.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-