Class BetaSkill.Builder
-
- All Implemented Interfaces:
public final class BetaSkill.BuilderA builder for BetaSkill.
-
-
Method Summary
Modifier and Type Method Description final BetaSkill.Builderid(String id)Unique identifier for the skill. final BetaSkill.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaSkill.BuildercreatedAt(OffsetDateTime createdAt)ISO 8601 timestamp of when the skill was created. final BetaSkill.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaSkill.BuilderdisplayName(String displayName)Human-readable, single-line label for the Skill. final BetaSkill.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final BetaSkill.BuilderlatestVersionId(String latestVersionId)ID of the newest Skill Version — what latestreferences resolve to.final BetaSkill.BuilderlatestVersionId(JsonField<String> latestVersionId)Sets Builder.latestVersionId to an arbitrary JSON value. final BetaSkill.Buildersource(BetaSkillSource source)Where the Skill comes from. final BetaSkill.Buildersource(JsonField<BetaSkillSource> source)Sets Builder.source to an arbitrary JSON value. final BetaSkill.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaSkill.BuilderupdatedAt(OffsetDateTime updatedAt)ISO 8601 timestamp of when the skill was last updated. final BetaSkill.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final BetaSkill.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaSkill.BuilderputAdditionalProperty(String key, JsonValue value)final BetaSkill.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaSkill.BuilderremoveAdditionalProperty(String key)final BetaSkill.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaSkillbuild()Returns an immutable instance of BetaSkill. -
-
Method Detail
-
id
final BetaSkill.Builder id(String id)
Unique identifier for the skill.
The format and length of IDs may change over time.
-
id
final BetaSkill.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 BetaSkill.Builder createdAt(OffsetDateTime createdAt)
ISO 8601 timestamp of when the skill was created.
-
createdAt
final BetaSkill.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 BetaSkill.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 BetaSkill.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 BetaSkill.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 BetaSkill.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 BetaSkill.Builder source(BetaSkillSource 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 BetaSkill.Builder source(JsonField<BetaSkillSource> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed BetaSkillSource value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaSkill.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 BetaSkill.Builder updatedAt(OffsetDateTime updatedAt)
ISO 8601 timestamp of when the skill was last updated.
-
updatedAt
final BetaSkill.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 BetaSkill.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaSkill.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSkill.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSkill.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSkill.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-