Class BetaPluginMarketplace.Builder
-
- All Implemented Interfaces:
public final class BetaPluginMarketplace.BuilderA builder for BetaPluginMarketplace.
-
-
Method Summary
Modifier and Type Method Description final BetaPluginMarketplace.Builderid(String id)The plugin marketplace's ID, prefixed marketplace_.final BetaPluginMarketplace.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaPluginMarketplace.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339. final BetaPluginMarketplace.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaPluginMarketplace.BuilderdefaultInstallationPreference(BetaPluginMarketplace.DefaultInstallationPreference defaultInstallationPreference)Organization plugin marketplace: the organization-wide setting every Plugin in it with no setting of its own gets. final BetaPluginMarketplace.BuilderdefaultInstallationPreference(Optional<BetaPluginMarketplace.DefaultInstallationPreference> defaultInstallationPreference)Alias for calling Builder.defaultInstallationPreference with defaultInstallationPreference.orElse(null).final BetaPluginMarketplace.BuilderdefaultInstallationPreference(JsonField<BetaPluginMarketplace.DefaultInstallationPreference> defaultInstallationPreference)Sets Builder.defaultInstallationPreference to an arbitrary JSON value. final BetaPluginMarketplace.BuilderlastSyncEndedAt(OffsetDateTime lastSyncEndedAt)RFC 3339. final BetaPluginMarketplace.BuilderlastSyncEndedAt(Optional<OffsetDateTime> lastSyncEndedAt)Alias for calling Builder.lastSyncEndedAt with lastSyncEndedAt.orElse(null).final BetaPluginMarketplace.BuilderlastSyncEndedAt(JsonField<OffsetDateTime> lastSyncEndedAt)Sets Builder.lastSyncEndedAt to an arbitrary JSON value. final BetaPluginMarketplace.BuilderlastSyncReadSha(String lastSyncReadSha)The commit the last synchronization attempt that reached the repository read, whether or not its content was then accepted (see sync_status); an attempt that endsfailed_authorfailed_transientleaves it unchanged.final BetaPluginMarketplace.BuilderlastSyncReadSha(Optional<String> lastSyncReadSha)Alias for calling Builder.lastSyncReadSha with lastSyncReadSha.orElse(null).final BetaPluginMarketplace.BuilderlastSyncReadSha(JsonField<String> lastSyncReadSha)Sets Builder.lastSyncReadSha to an arbitrary JSON value. final BetaPluginMarketplace.Buildername(String name)Fixed for the plugin marketplace's lifetime. final BetaPluginMarketplace.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final BetaPluginMarketplace.Builderowner(BetaPluginMarketplace.Owner owner)The organization, or the member whose personal plugin marketplace it is. final BetaPluginMarketplace.Builderowner(JsonField<BetaPluginMarketplace.Owner> owner)Sets Builder.owner to an arbitrary JSON value. final BetaPluginMarketplace.Builderowner(BetaPluginOwnerOrganization organization)Alias for calling owner with Owner.ofOrganization(organization).final BetaPluginMarketplace.Builderowner(BetaPluginOwnerUser user)Alias for calling owner with Owner.ofUser(user).final BetaPluginMarketplace.Buildersource(BetaPluginMarketplace.Source source)Where the plugin marketplace's Plugins come from: manualwhen they are uploaded;github,gitlaborpublic_gitwhen they are synchronized from the Git repository the owner connected, into which nothing can be uploaded;directoryis Anthropic's own catalog, which this API does not list.final BetaPluginMarketplace.Buildersource(JsonField<BetaPluginMarketplace.Source> source)Sets Builder.source to an arbitrary JSON value. final BetaPluginMarketplace.BuildersyncStatus(BetaPluginMarketplace.SyncStatus syncStatus)Outcome of the plugin marketplace's most recent synchronization: one of success,in_progress,failed_content,failed_transient,failed_auth,failed_limits; a value this API does not yet name is returned as stored.final BetaPluginMarketplace.BuildersyncStatus(Optional<BetaPluginMarketplace.SyncStatus> syncStatus)Alias for calling Builder.syncStatus with syncStatus.orElse(null).final BetaPluginMarketplace.BuildersyncStatus(JsonField<BetaPluginMarketplace.SyncStatus> syncStatus)Sets Builder.syncStatus to an arbitrary JSON value. final BetaPluginMarketplace.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaPluginMarketplace.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaPluginMarketplace.BuilderuserOwner(String userId)Alias for calling owner with the following: BetaPluginOwnerUser.builder() .userId(userId) .build()final BetaPluginMarketplace.BuilderputAdditionalProperty(String key, JsonValue value)final BetaPluginMarketplace.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaPluginMarketplace.BuilderremoveAdditionalProperty(String key)final BetaPluginMarketplace.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaPluginMarketplacebuild()Returns an immutable instance of BetaPluginMarketplace. -
-
Method Detail
-
id
final BetaPluginMarketplace.Builder id(String id)
The plugin marketplace's ID, prefixed
marketplace_.
-
id
final BetaPluginMarketplace.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 BetaPluginMarketplace.Builder createdAt(OffsetDateTime createdAt)
RFC 3339.
-
createdAt
final BetaPluginMarketplace.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.
-
defaultInstallationPreference
final BetaPluginMarketplace.Builder defaultInstallationPreference(BetaPluginMarketplace.DefaultInstallationPreference defaultInstallationPreference)
Organization plugin marketplace: the organization-wide setting every Plugin in it with no setting of its own gets. Null for a member's personal plugin marketplace. One of
required,auto_install,available,not_available; a value this API does not yet name is returned as stored.
-
defaultInstallationPreference
final BetaPluginMarketplace.Builder defaultInstallationPreference(Optional<BetaPluginMarketplace.DefaultInstallationPreference> defaultInstallationPreference)
Alias for calling Builder.defaultInstallationPreference with
defaultInstallationPreference.orElse(null).
-
defaultInstallationPreference
final BetaPluginMarketplace.Builder defaultInstallationPreference(JsonField<BetaPluginMarketplace.DefaultInstallationPreference> defaultInstallationPreference)
Sets Builder.defaultInstallationPreference to an arbitrary JSON value.
You should usually call Builder.defaultInstallationPreference with a well-typed DefaultInstallationPreference value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastSyncEndedAt
final BetaPluginMarketplace.Builder lastSyncEndedAt(OffsetDateTime lastSyncEndedAt)
RFC 3339. When the most recent synchronization attempt to finish did so, whatever its outcome; for a repository plugin marketplace no synchronization has run on yet, when it was created. Null for a plugin marketplace that is not synchronized from a repository.
-
lastSyncEndedAt
final BetaPluginMarketplace.Builder lastSyncEndedAt(Optional<OffsetDateTime> lastSyncEndedAt)
Alias for calling Builder.lastSyncEndedAt with
lastSyncEndedAt.orElse(null).
-
lastSyncEndedAt
final BetaPluginMarketplace.Builder lastSyncEndedAt(JsonField<OffsetDateTime> lastSyncEndedAt)
Sets Builder.lastSyncEndedAt to an arbitrary JSON value.
You should usually call Builder.lastSyncEndedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastSyncReadSha
final BetaPluginMarketplace.Builder lastSyncReadSha(String lastSyncReadSha)
The commit the last synchronization attempt that reached the repository read, whether or not its content was then accepted (see
sync_status); an attempt that endsfailed_authorfailed_transientleaves it unchanged. Null until an attempt has first read the repository, and for a plugin marketplace that is not synchronized from a repository.
-
lastSyncReadSha
final BetaPluginMarketplace.Builder lastSyncReadSha(Optional<String> lastSyncReadSha)
Alias for calling Builder.lastSyncReadSha with
lastSyncReadSha.orElse(null).
-
lastSyncReadSha
final BetaPluginMarketplace.Builder lastSyncReadSha(JsonField<String> lastSyncReadSha)
Sets Builder.lastSyncReadSha to an arbitrary JSON value.
You should usually call Builder.lastSyncReadSha 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 BetaPluginMarketplace.Builder name(String name)
Fixed for the plugin marketplace's lifetime.
-
name
final BetaPluginMarketplace.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.
-
owner
final BetaPluginMarketplace.Builder owner(BetaPluginMarketplace.Owner owner)
The organization, or the member whose personal plugin marketplace it is.
-
owner
final BetaPluginMarketplace.Builder owner(JsonField<BetaPluginMarketplace.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 BetaPluginMarketplace.Builder owner(BetaPluginOwnerOrganization organization)
Alias for calling owner with
Owner.ofOrganization(organization).
-
owner
final BetaPluginMarketplace.Builder owner(BetaPluginOwnerUser user)
Alias for calling owner with
Owner.ofUser(user).
-
source
final BetaPluginMarketplace.Builder source(BetaPluginMarketplace.Source source)
Where the plugin marketplace's Plugins come from:
manualwhen they are uploaded;github,gitlaborpublic_gitwhen they are synchronized from the Git repository the owner connected, into which nothing can be uploaded;directoryis Anthropic's own catalog, which this API does not list. A value this API does not yet name is returned as stored.
-
source
final BetaPluginMarketplace.Builder source(JsonField<BetaPluginMarketplace.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
syncStatus
final BetaPluginMarketplace.Builder syncStatus(BetaPluginMarketplace.SyncStatus syncStatus)
Outcome of the plugin marketplace's most recent synchronization: one of
success,in_progress,failed_content,failed_transient,failed_auth,failed_limits; a value this API does not yet name is returned as stored. Null until a synchronization is first attempted — so always for amanualplugin marketplace.
-
syncStatus
final BetaPluginMarketplace.Builder syncStatus(Optional<BetaPluginMarketplace.SyncStatus> syncStatus)
Alias for calling Builder.syncStatus with
syncStatus.orElse(null).
-
syncStatus
final BetaPluginMarketplace.Builder syncStatus(JsonField<BetaPluginMarketplace.SyncStatus> syncStatus)
Sets Builder.syncStatus to an arbitrary JSON value.
You should usually call Builder.syncStatus with a well-typed SyncStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaPluginMarketplace.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_marketplace")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaPluginMarketplace.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
userOwner
final BetaPluginMarketplace.Builder userOwner(String userId)
Alias for calling owner with the following:
BetaPluginOwnerUser.builder() .userId(userId) .build()
-
putAdditionalProperty
final BetaPluginMarketplace.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaPluginMarketplace.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaPluginMarketplace.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaPluginMarketplace.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaPluginMarketplace build()
Returns an immutable instance of BetaPluginMarketplace.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .defaultInstallationPreference() .lastSyncEndedAt() .lastSyncReadSha() .name() .owner() .source() .syncStatus()
-
-
-
-