Class BetaManagedAgentsWebFetchToolConfigParams.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWebFetchToolConfigParams.BuilderA builder for BetaManagedAgentsWebFetchToolConfigParams.
-
-
Method Summary
-
-
Method Detail
-
name
final BetaManagedAgentsWebFetchToolConfigParams.Builder name(JsonValue name)
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("web_fetch")This method is primarily for setting the field to an undocumented or not yet supported value.
-
allowedDomains
final BetaManagedAgentsWebFetchToolConfigParams.Builder allowedDomains(List<String> allowedDomains)
Only fetch URLs whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "docs.example.com" (no scheme, port, or path). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with blocked_domains.
-
allowedDomains
final BetaManagedAgentsWebFetchToolConfigParams.Builder allowedDomains(JsonField<List<String>> allowedDomains)
Sets Builder.allowedDomains to an arbitrary JSON value.
You should usually call Builder.allowedDomains with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockedDomains
final BetaManagedAgentsWebFetchToolConfigParams.Builder blockedDomains(List<String> blockedDomains)
Never fetch URLs whose host is one of these domains or a subdomain of one. Each entry is a plain hostname like "ads.example.com" (no scheme, port, or path). At most 64 entries; an empty list is rejected (omit the field instead). Cannot be combined with allowed_domains.
-
blockedDomains
final BetaManagedAgentsWebFetchToolConfigParams.Builder blockedDomains(JsonField<List<String>> blockedDomains)
Sets Builder.blockedDomains to an arbitrary JSON value.
You should usually call Builder.blockedDomains with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enabled
final BetaManagedAgentsWebFetchToolConfigParams.Builder enabled(Boolean enabled)
Whether this tool is enabled and available to Claude. Overrides the default_config setting.
-
enabled
final BetaManagedAgentsWebFetchToolConfigParams.Builder enabled(Boolean enabled)
Alias for Builder.enabled.
This unboxed primitive overload exists for backwards compatibility.
-
enabled
final BetaManagedAgentsWebFetchToolConfigParams.Builder enabled(Optional<Boolean> enabled)
Alias for calling Builder.enabled with
enabled.orElse(null).
-
enabled
final BetaManagedAgentsWebFetchToolConfigParams.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfigParams.Builder maxContentTokens(Integer maxContentTokens)
Maximum number of tokens of fetched text content to include in context per call. Does not apply to binary content such as PDFs.
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfigParams.Builder maxContentTokens(Integer maxContentTokens)
Alias for Builder.maxContentTokens.
This unboxed primitive overload exists for backwards compatibility.
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfigParams.Builder maxContentTokens(Optional<Integer> maxContentTokens)
Alias for calling Builder.maxContentTokens with
maxContentTokens.orElse(null).
-
maxContentTokens
final BetaManagedAgentsWebFetchToolConfigParams.Builder maxContentTokens(JsonField<Integer> maxContentTokens)
Sets Builder.maxContentTokens to an arbitrary JSON value.
You should usually call Builder.maxContentTokens with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsWebFetchToolConfigParams.PermissionPolicy permissionPolicy)
Permission policy for this tool. Controls whether tool calls are auto-approved or require confirmation.
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfigParams.Builder permissionPolicy(Optional<BetaManagedAgentsWebFetchToolConfigParams.PermissionPolicy> permissionPolicy)
Alias for calling Builder.permissionPolicy with
permissionPolicy.orElse(null).
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfigParams.Builder permissionPolicy(JsonField<BetaManagedAgentsWebFetchToolConfigParams.PermissionPolicy> permissionPolicy)
Sets Builder.permissionPolicy to an arbitrary JSON value.
You should usually call Builder.permissionPolicy with a well-typed PermissionPolicy value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsAlwaysAllowPolicy alwaysAllow)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAllow(alwaysAllow).
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsAlwaysAskPolicy alwaysAsk)
Alias for calling permissionPolicy with
PermissionPolicy.ofAlwaysAsk(alwaysAsk).
-
permissionPolicy
final BetaManagedAgentsWebFetchToolConfigParams.Builder permissionPolicy(BetaManagedAgentsAutoPolicy auto)
Alias for calling permissionPolicy with
PermissionPolicy.ofAuto(auto).
-
type
final BetaManagedAgentsWebFetchToolConfigParams.Builder type(BetaManagedAgentsWebFetchToolConfigParams.Type type)
-
type
final BetaManagedAgentsWebFetchToolConfigParams.Builder type(JsonField<BetaManagedAgentsWebFetchToolConfigParams.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
urlSources
final BetaManagedAgentsWebFetchToolConfigParams.Builder urlSources(BetaManagedAgentsWebFetchUrlSourcesParams urlSources)
Which sources contribute URLs the tool may fetch. Omit to allow every source.
-
urlSources
final BetaManagedAgentsWebFetchToolConfigParams.Builder urlSources(Optional<BetaManagedAgentsWebFetchUrlSourcesParams> urlSources)
Alias for calling Builder.urlSources with
urlSources.orElse(null).
-
urlSources
final BetaManagedAgentsWebFetchToolConfigParams.Builder urlSources(JsonField<BetaManagedAgentsWebFetchUrlSourcesParams> urlSources)
Sets Builder.urlSources to an arbitrary JSON value.
You should usually call Builder.urlSources with a well-typed BetaManagedAgentsWebFetchUrlSourcesParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsWebFetchToolConfigParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addAllowedDomain
final BetaManagedAgentsWebFetchToolConfigParams.Builder addAllowedDomain(String allowedDomain)
Adds a single String to allowedDomains.
-
addBlockedDomain
final BetaManagedAgentsWebFetchToolConfigParams.Builder addBlockedDomain(String blockedDomain)
Adds a single String to blockedDomains.
-
putAdditionalProperty
final BetaManagedAgentsWebFetchToolConfigParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsWebFetchToolConfigParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsWebFetchToolConfigParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsWebFetchToolConfigParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsWebFetchToolConfigParams build()
Returns an immutable instance of BetaManagedAgentsWebFetchToolConfigParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-