Class RuleUpdateParams.Builder
-
- All Implemented Interfaces:
public final class RuleUpdateParams.BuilderA builder for RuleUpdateParams.
-
-
Method Summary
-
-
Method Detail
-
federationRuleId
final RuleUpdateParams.Builder federationRuleId(String federationRuleId)
ID of the federation rule to update.
-
federationRuleId
final RuleUpdateParams.Builder federationRuleId(Optional<String> federationRuleId)
Alias for calling Builder.federationRuleId with
federationRuleId.orElse(null).
-
body
final RuleUpdateParams.Builder body(RuleUpdateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
additionalHeaders
final RuleUpdateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final RuleUpdateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
additionalQueryParams
final RuleUpdateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final RuleUpdateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
appliesToAllWorkspaces
final RuleUpdateParams.Builder appliesToAllWorkspaces(Boolean appliesToAllWorkspaces)
When true, enables this rule for every workspace in the org (including workspaces created later). Setting
falseis rejected with 400 if no workspace would remain enabled; a rule with only a legacyworkspace_idbinding continues to mint.
-
appliesToAllWorkspaces
final RuleUpdateParams.Builder appliesToAllWorkspaces(Boolean appliesToAllWorkspaces)
Alias for Builder.appliesToAllWorkspaces.
This unboxed primitive overload exists for backwards compatibility.
-
appliesToAllWorkspaces
final RuleUpdateParams.Builder appliesToAllWorkspaces(Optional<Boolean> appliesToAllWorkspaces)
Alias for calling Builder.appliesToAllWorkspaces with
appliesToAllWorkspaces.orElse(null).
-
appliesToAllWorkspaces
final RuleUpdateParams.Builder appliesToAllWorkspaces(JsonField<Boolean> appliesToAllWorkspaces)
Sets Builder.appliesToAllWorkspaces to an arbitrary JSON value.
You should usually call Builder.appliesToAllWorkspaces with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final RuleUpdateParams.Builder description(String description)
Replaces the description. Omit to leave unchanged; send
nullto clear (the field is stored as an empty string).
-
description
final RuleUpdateParams.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final RuleUpdateParams.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.
-
match
final RuleUpdateParams.Builder match(FederationRuleMatch match)
Replaces the entire match object. All populated matcher fields must pass.
-
match
final RuleUpdateParams.Builder match(Optional<FederationRuleMatch> match)
Alias for calling Builder.match with
match.orElse(null).
-
match
final RuleUpdateParams.Builder match(JsonField<FederationRuleMatch> match)
Sets Builder.match to an arbitrary JSON value.
You should usually call Builder.match with a well-typed FederationRuleMatch value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final RuleUpdateParams.Builder name(String name)
Replaces the slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
-
name
final RuleUpdateParams.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final RuleUpdateParams.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.
-
oauthScope
final RuleUpdateParams.Builder oauthScope(String oauthScope)
Replaces the space-separated OAuth scopes granted on minted tokens. OAuth callers may only set
workspace:developerorworkspace:inference; other scopes (such asorg:admin) require a Console session.
-
oauthScope
final RuleUpdateParams.Builder oauthScope(Optional<String> oauthScope)
Alias for calling Builder.oauthScope with
oauthScope.orElse(null).
-
oauthScope
final RuleUpdateParams.Builder oauthScope(JsonField<String> oauthScope)
Sets Builder.oauthScope to an arbitrary JSON value.
You should usually call Builder.oauthScope with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
target
final RuleUpdateParams.Builder target(ServiceAccountTarget target)
Replaces the entire target object. Currently always a
service_accounttarget.
-
target
final RuleUpdateParams.Builder target(Optional<ServiceAccountTarget> target)
Alias for calling Builder.target with
target.orElse(null).
-
target
final RuleUpdateParams.Builder target(JsonField<ServiceAccountTarget> target)
Sets Builder.target to an arbitrary JSON value.
You should usually call Builder.target with a well-typed ServiceAccountTarget value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tokenLifetimeSeconds
final RuleUpdateParams.Builder tokenLifetimeSeconds(Long tokenLifetimeSeconds)
Replaces the lifetime in seconds for access tokens minted via this rule (60-86400). Minted tokens are capped at
max(60, min(this value, 2 × remaining assertion validity))seconds.
-
tokenLifetimeSeconds
final RuleUpdateParams.Builder tokenLifetimeSeconds(Long tokenLifetimeSeconds)
Alias for Builder.tokenLifetimeSeconds.
This unboxed primitive overload exists for backwards compatibility.
-
tokenLifetimeSeconds
final RuleUpdateParams.Builder tokenLifetimeSeconds(Optional<Long> tokenLifetimeSeconds)
Alias for calling Builder.tokenLifetimeSeconds with
tokenLifetimeSeconds.orElse(null).
-
tokenLifetimeSeconds
final RuleUpdateParams.Builder tokenLifetimeSeconds(JsonField<Long> tokenLifetimeSeconds)
Sets Builder.tokenLifetimeSeconds to an arbitrary JSON value.
You should usually call Builder.tokenLifetimeSeconds with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaceId
final RuleUpdateParams.Builder workspaceId(String workspaceId)
Replaces the existing single workspace enablement (the previous one is removed). Rejected with 400 if the rule is enabled for more than one workspace; use the
/federation_rules/{federation_rule_id}/workspacessub-resource instead.
-
workspaceId
final RuleUpdateParams.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
workspaceId
final RuleUpdateParams.Builder workspaceId(JsonField<String> workspaceId)
Sets Builder.workspaceId to an arbitrary JSON value.
You should usually call Builder.workspaceId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalBodyProperties
final RuleUpdateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final RuleUpdateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final RuleUpdateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final RuleUpdateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final RuleUpdateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
putAdditionalHeader
final RuleUpdateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final RuleUpdateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final RuleUpdateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final RuleUpdateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final RuleUpdateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final RuleUpdateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final RuleUpdateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final RuleUpdateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final RuleUpdateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final RuleUpdateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
putAdditionalQueryParam
final RuleUpdateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final RuleUpdateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final RuleUpdateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final RuleUpdateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final RuleUpdateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final RuleUpdateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final RuleUpdateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final RuleUpdateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final RuleUpdateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final RuleUpdateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final RuleUpdateParams build()
Returns an immutable instance of RuleUpdateParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-