Class BetaPlugin.Builder
-
- All Implemented Interfaces:
public final class BetaPlugin.BuilderA builder for BetaPlugin.
-
-
Method Summary
Modifier and Type Method Description final BetaPlugin.Builderid(String id)The Plugin's ID. final BetaPlugin.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaPlugin.Buildercomponents(List<BetaPluginComponent> components)What the served version contains; null when not enumerated. final BetaPlugin.Buildercomponents(Optional<List<BetaPluginComponent>> components)Alias for calling Builder.components with components.orElse(null).final BetaPlugin.Buildercomponents(JsonField<List<BetaPluginComponent>> components)Sets Builder.components to an arbitrary JSON value. final BetaPlugin.BuildercontentScan(BetaPluginContentScan contentScan)The served version's content scan; null when it has not been scanned. final BetaPlugin.BuildercontentScan(Optional<BetaPluginContentScan> contentScan)Alias for calling Builder.contentScan with contentScan.orElse(null).final BetaPlugin.BuildercontentScan(JsonField<BetaPluginContentScan> contentScan)Sets Builder.contentScan to an arbitrary JSON value. final BetaPlugin.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339. final BetaPlugin.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaPlugin.BuildercreatedBy(BetaPlugin.CreatedBy createdBy)Who created the Plugin; null when no creator is recorded. final BetaPlugin.BuildercreatedBy(Optional<BetaPlugin.CreatedBy> createdBy)Alias for calling Builder.createdBy with createdBy.orElse(null).final BetaPlugin.BuildercreatedBy(JsonField<BetaPlugin.CreatedBy> createdBy)Sets Builder.createdBy to an arbitrary JSON value. final BetaPlugin.BuildercreatedBy(BetaPluginUserActor userActor)Alias for calling createdBy with CreatedBy.ofUserActor(userActor).final BetaPlugin.BuildercreatedBy(BetaPluginApiActor apiActor)Alias for calling createdBy with CreatedBy.ofApiActor(apiActor).final BetaPlugin.Builderdescription(String description)The served version's description. final BetaPlugin.Builderdescription(Optional<String> description)Alias for calling Builder.description with description.orElse(null).final BetaPlugin.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final BetaPlugin.BuilderdisplayName(String displayName)The served version's display name. final BetaPlugin.BuilderdisplayName(Optional<String> displayName)Alias for calling Builder.displayName with displayName.orElse(null).final BetaPlugin.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final BetaPlugin.BuilderlatestVersionId(String latestVersionId)The newest version. final BetaPlugin.BuilderlatestVersionId(JsonField<String> latestVersionId)Sets Builder.latestVersionId to an arbitrary JSON value. final BetaPlugin.BuildermanifestVersion(String manifestVersion)The served version's manifest version, normalized for display, ornull(the Plugin Version'smanifest_versionsays how and when).final BetaPlugin.BuildermanifestVersion(Optional<String> manifestVersion)Alias for calling Builder.manifestVersion with manifestVersion.orElse(null).final BetaPlugin.BuildermanifestVersion(JsonField<String> manifestVersion)Sets Builder.manifestVersion to an arbitrary JSON value. final BetaPlugin.BuildermarketplaceId(String marketplaceId)The ID of the plugin marketplace the Plugin lives in. final BetaPlugin.BuildermarketplaceId(JsonField<String> marketplaceId)Sets Builder.marketplaceId to an arbitrary JSON value. final BetaPlugin.Buildername(String name)Lowercase identifier, unique within its plugin marketplace. final BetaPlugin.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final BetaPlugin.BuilderorganizationInstallationPreference(BetaPlugin.OrganizationInstallationPreference organizationInstallationPreference)Organization-owned Plugin: the organization-wide installation setting every member gets unless an RBAC Group they belong to holds its own — the Plugin's own setting, or its plugin marketplace's default. final BetaPlugin.BuilderorganizationInstallationPreference(Optional<BetaPlugin.OrganizationInstallationPreference> organizationInstallationPreference)Alias for calling Builder.organizationInstallationPreference with organizationInstallationPreference.orElse(null).final BetaPlugin.BuilderorganizationInstallationPreference(JsonField<BetaPlugin.OrganizationInstallationPreference> organizationInstallationPreference)Sets Builder.organizationInstallationPreference to an arbitrary JSON value. final BetaPlugin.BuilderorganizationInstallationPreferenceInherited(Boolean organizationInstallationPreferenceInherited)Organization-owned Plugin: true while it has no organization-wide setting of its own and organization_installation_preferenceis its plugin marketplace's default.final BetaPlugin.BuilderorganizationInstallationPreferenceInherited(Boolean organizationInstallationPreferenceInherited)Alias for Builder.organizationInstallationPreferenceInherited. final BetaPlugin.BuilderorganizationInstallationPreferenceInherited(Optional<Boolean> organizationInstallationPreferenceInherited)Alias for calling Builder.organizationInstallationPreferenceInherited with organizationInstallationPreferenceInherited.orElse(null).final BetaPlugin.BuilderorganizationInstallationPreferenceInherited(JsonField<Boolean> organizationInstallationPreferenceInherited)Sets Builder.organizationInstallationPreferenceInherited to an arbitrary JSON value. final BetaPlugin.Builderowner(BetaPlugin.Owner owner)Who owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in. final BetaPlugin.Builderowner(JsonField<BetaPlugin.Owner> owner)Sets Builder.owner to an arbitrary JSON value. final BetaPlugin.Builderowner(BetaPluginOwnerOrganization organization)Alias for calling owner with Owner.ofOrganization(organization).final BetaPlugin.Builderowner(BetaPluginOwnerUser user)Alias for calling owner with Owner.ofUser(user).final BetaPlugin.Builderreach(BetaPlugin.Reach reach)How far the served version reaches, or nullif it is not classified.final BetaPlugin.Builderreach(Optional<BetaPlugin.Reach> reach)Alias for calling Builder.reach with reach.orElse(null).final BetaPlugin.Builderreach(JsonField<BetaPlugin.Reach> reach)Sets Builder.reach to an arbitrary JSON value. final BetaPlugin.BuilderservedVersionId(String servedVersionId)The version claude.ai serves to members. final BetaPlugin.BuilderservedVersionId(JsonField<String> servedVersionId)Sets Builder.servedVersionId to an arbitrary JSON value. final BetaPlugin.BuilderservedVersionPinned(Boolean servedVersionPinned)True once the served version has been pinned, through Update Plugin or in claude.ai. final BetaPlugin.BuilderservedVersionPinned(JsonField<Boolean> servedVersionPinned)Sets Builder.servedVersionPinned to an arbitrary JSON value. final BetaPlugin.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaPlugin.BuilderupdatedAt(OffsetDateTime updatedAt)RFC 3339. final BetaPlugin.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final BetaPlugin.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaPlugin.BuilderaddComponent(BetaPluginComponent component)Adds a single BetaPluginComponent to components. final BetaPlugin.BuilderapiActorCreatedBy(String apiKeyId)Alias for calling createdBy with the following: BetaPluginApiActor.builder() .apiKeyId(apiKeyId) .build()final BetaPlugin.BuilderuserOwner(String userId)Alias for calling owner with the following: BetaPluginOwnerUser.builder() .userId(userId) .build()final BetaPlugin.BuilderputAdditionalProperty(String key, JsonValue value)final BetaPlugin.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaPlugin.BuilderremoveAdditionalProperty(String key)final BetaPlugin.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaPluginbuild()Returns an immutable instance of BetaPlugin. -
-
Method Detail
-
id
final BetaPlugin.Builder id(String id)
The Plugin's ID.
-
id
final BetaPlugin.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.
-
components
final BetaPlugin.Builder components(List<BetaPluginComponent> components)
What the served version contains; null when not enumerated.
-
components
final BetaPlugin.Builder components(Optional<List<BetaPluginComponent>> components)
Alias for calling Builder.components with
components.orElse(null).
-
components
final BetaPlugin.Builder components(JsonField<List<BetaPluginComponent>> components)
Sets Builder.components to an arbitrary JSON value.
You should usually call Builder.components with a well-typed
List<BetaPluginComponent>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contentScan
final BetaPlugin.Builder contentScan(BetaPluginContentScan contentScan)
The served version's content scan; null when it has not been scanned.
-
contentScan
final BetaPlugin.Builder contentScan(Optional<BetaPluginContentScan> contentScan)
Alias for calling Builder.contentScan with
contentScan.orElse(null).
-
contentScan
final BetaPlugin.Builder contentScan(JsonField<BetaPluginContentScan> contentScan)
Sets Builder.contentScan to an arbitrary JSON value.
You should usually call Builder.contentScan with a well-typed BetaPluginContentScan value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaPlugin.Builder createdAt(OffsetDateTime createdAt)
RFC 3339.
-
createdAt
final BetaPlugin.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.
-
createdBy
final BetaPlugin.Builder createdBy(BetaPlugin.CreatedBy createdBy)
Who created the Plugin; null when no creator is recorded.
-
createdBy
final BetaPlugin.Builder createdBy(Optional<BetaPlugin.CreatedBy> createdBy)
Alias for calling Builder.createdBy with
createdBy.orElse(null).
-
createdBy
final BetaPlugin.Builder createdBy(JsonField<BetaPlugin.CreatedBy> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed CreatedBy value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdBy
final BetaPlugin.Builder createdBy(BetaPluginUserActor userActor)
Alias for calling createdBy with
CreatedBy.ofUserActor(userActor).
-
createdBy
final BetaPlugin.Builder createdBy(BetaPluginApiActor apiActor)
Alias for calling createdBy with
CreatedBy.ofApiActor(apiActor).
-
description
final BetaPlugin.Builder description(String description)
The served version's description.
-
description
final BetaPlugin.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final BetaPlugin.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.
-
displayName
final BetaPlugin.Builder displayName(String displayName)
The served version's display name.
-
displayName
final BetaPlugin.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final BetaPlugin.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 BetaPlugin.Builder latestVersionId(String latestVersionId)
The newest version.
-
latestVersionId
final BetaPlugin.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.
-
manifestVersion
final BetaPlugin.Builder manifestVersion(String manifestVersion)
The served version's manifest
version, normalized for display, ornull(the Plugin Version'smanifest_versionsays how and when).
-
manifestVersion
final BetaPlugin.Builder manifestVersion(Optional<String> manifestVersion)
Alias for calling Builder.manifestVersion with
manifestVersion.orElse(null).
-
manifestVersion
final BetaPlugin.Builder manifestVersion(JsonField<String> manifestVersion)
Sets Builder.manifestVersion to an arbitrary JSON value.
You should usually call Builder.manifestVersion with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
marketplaceId
final BetaPlugin.Builder marketplaceId(String marketplaceId)
The ID of the plugin marketplace the Plugin lives in.
-
marketplaceId
final BetaPlugin.Builder marketplaceId(JsonField<String> marketplaceId)
Sets Builder.marketplaceId to an arbitrary JSON value.
You should usually call Builder.marketplaceId 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 BetaPlugin.Builder name(String name)
Lowercase identifier, unique within its plugin marketplace. Fixed for an organization-owned Plugin's lifetime; a member-owned Plugin's changes when its owner renames it in claude.ai, while its
idstays the same.
-
name
final BetaPlugin.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.
-
organizationInstallationPreference
final BetaPlugin.Builder organizationInstallationPreference(BetaPlugin.OrganizationInstallationPreference organizationInstallationPreference)
Organization-owned Plugin: the organization-wide installation setting every member gets unless an RBAC Group they belong to holds its own — the Plugin's own setting, or its plugin marketplace's default. Null for a member-owned Plugin, which has shares instead. One of
required,auto_install,available,not_available; a value this API does not yet name is returned as stored.
-
organizationInstallationPreference
final BetaPlugin.Builder organizationInstallationPreference(Optional<BetaPlugin.OrganizationInstallationPreference> organizationInstallationPreference)
Alias for calling Builder.organizationInstallationPreference with
organizationInstallationPreference.orElse(null).
-
organizationInstallationPreference
final BetaPlugin.Builder organizationInstallationPreference(JsonField<BetaPlugin.OrganizationInstallationPreference> organizationInstallationPreference)
Sets Builder.organizationInstallationPreference to an arbitrary JSON value.
You should usually call Builder.organizationInstallationPreference with a well-typed OrganizationInstallationPreference value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
organizationInstallationPreferenceInherited
final BetaPlugin.Builder organizationInstallationPreferenceInherited(Boolean organizationInstallationPreferenceInherited)
Organization-owned Plugin: true while it has no organization-wide setting of its own and
organization_installation_preferenceis its plugin marketplace's default. Null for a member-owned Plugin.
-
organizationInstallationPreferenceInherited
final BetaPlugin.Builder organizationInstallationPreferenceInherited(Boolean organizationInstallationPreferenceInherited)
Alias for Builder.organizationInstallationPreferenceInherited.
This unboxed primitive overload exists for backwards compatibility.
-
organizationInstallationPreferenceInherited
final BetaPlugin.Builder organizationInstallationPreferenceInherited(Optional<Boolean> organizationInstallationPreferenceInherited)
Alias for calling Builder.organizationInstallationPreferenceInherited with
organizationInstallationPreferenceInherited.orElse(null).
-
organizationInstallationPreferenceInherited
final BetaPlugin.Builder organizationInstallationPreferenceInherited(JsonField<Boolean> organizationInstallationPreferenceInherited)
Sets Builder.organizationInstallationPreferenceInherited to an arbitrary JSON value.
You should usually call Builder.organizationInstallationPreferenceInherited with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
owner
final BetaPlugin.Builder owner(BetaPlugin.Owner owner)
Who owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in.
-
owner
final BetaPlugin.Builder owner(JsonField<BetaPlugin.Owner> owner)
Sets Builder.owner to an arbitrary JSON value.
You should usually call Builder.owner with a well-typed Owner value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
owner
final BetaPlugin.Builder owner(BetaPluginOwnerOrganization organization)
Alias for calling owner with
Owner.ofOrganization(organization).
-
owner
final BetaPlugin.Builder owner(BetaPluginOwnerUser user)
Alias for calling owner with
Owner.ofUser(user).
-
reach
final BetaPlugin.Builder reach(BetaPlugin.Reach reach)
How far the served version reaches, or
nullif it is not classified.remotemeans it declares an MCP server or a CLI, or something that counts as one.privilegedmeans it is notremote, but declares a hook (of any type, even one that posts to a URL), monitor, language server, Claude Code workflow (any file in aworkflows/folder at its root counts as one), or settings, or has a skill, command, or other Markdown file whose frontmatter pre-approves tools (allowed-toolswith any value other than an empty one or one that names onlyAskUserQuestion,TodoWrite, andToolSearch). Otherwise it iscontained.If the frontmatter of a skill, command, or other Markdown file that could change the value could not be read, or was past a size limit, the version is
nullorprivileged(orremote, if something else it declares makes itremote), notcontained. The value is normally worked out when a version is stored, under the rules of that time, so an older version can benull,containedwhere the same files stored today would beprivileged,remote, ornull, orprivilegedwhere they would beremote.
-
reach
final BetaPlugin.Builder reach(Optional<BetaPlugin.Reach> reach)
Alias for calling Builder.reach with
reach.orElse(null).
-
reach
final BetaPlugin.Builder reach(JsonField<BetaPlugin.Reach> reach)
Sets Builder.reach to an arbitrary JSON value.
You should usually call Builder.reach with a well-typed Reach value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
servedVersionId
final BetaPlugin.Builder servedVersionId(String servedVersionId)
The version claude.ai serves to members.
-
servedVersionId
final BetaPlugin.Builder servedVersionId(JsonField<String> servedVersionId)
Sets Builder.servedVersionId to an arbitrary JSON value.
You should usually call Builder.servedVersionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
servedVersionPinned
final BetaPlugin.Builder servedVersionPinned(Boolean servedVersionPinned)
True once the served version has been pinned, through Update Plugin or in claude.ai. While false, a new version normally becomes the served version when it is stored. While the newest version is not the served version, as when a version saved in claude.ai is waiting for its content scan,
served_version_iddiffers fromlatest_version_id.
-
servedVersionPinned
final BetaPlugin.Builder servedVersionPinned(JsonField<Boolean> servedVersionPinned)
Sets Builder.servedVersionPinned to an arbitrary JSON value.
You should usually call Builder.servedVersionPinned with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaPlugin.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("plugin")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaPlugin.Builder updatedAt(OffsetDateTime updatedAt)
RFC 3339. Moves on a served-version change (including pinning an unpinned Plugin to the version it already serves) and, normally, on a new version. A version saved in claude.ai that waits for its content scan moves it when it becomes the served version, and not necessarily when it is stored. A change to the Plugin's installation settings or shares does not move it.
-
updatedAt
final BetaPlugin.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 BetaPlugin.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addComponent
final BetaPlugin.Builder addComponent(BetaPluginComponent component)
Adds a single BetaPluginComponent to components.
-
apiActorCreatedBy
final BetaPlugin.Builder apiActorCreatedBy(String apiKeyId)
Alias for calling createdBy with the following:
BetaPluginApiActor.builder() .apiKeyId(apiKeyId) .build()
-
userOwner
final BetaPlugin.Builder userOwner(String userId)
Alias for calling owner with the following:
BetaPluginOwnerUser.builder() .userId(userId) .build()
-
putAdditionalProperty
final BetaPlugin.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaPlugin.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaPlugin.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaPlugin.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaPlugin build()
Returns an immutable instance of BetaPlugin.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .components() .contentScan() .createdAt() .createdBy() .description() .displayName() .latestVersionId() .manifestVersion() .marketplaceId() .name() .organizationInstallationPreference() .organizationInstallationPreferenceInherited() .owner() .reach() .servedVersionId() .servedVersionPinned() .updatedAt()
-
-
-
-