Class RuleUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class RuleUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
appliesToAllWorkspaces
final RuleUpdateParams.Body.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.Body.Builder appliesToAllWorkspaces(Boolean appliesToAllWorkspaces)
Alias for Builder.appliesToAllWorkspaces.
This unboxed primitive overload exists for backwards compatibility.
-
appliesToAllWorkspaces
final RuleUpdateParams.Body.Builder appliesToAllWorkspaces(Optional<Boolean> appliesToAllWorkspaces)
Alias for calling Builder.appliesToAllWorkspaces with
appliesToAllWorkspaces.orElse(null).
-
appliesToAllWorkspaces
final RuleUpdateParams.Body.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.Body.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.Body.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final RuleUpdateParams.Body.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.Body.Builder match(FederationRuleMatch match)
Replaces the entire match object. All populated matcher fields must pass.
-
match
final RuleUpdateParams.Body.Builder match(Optional<FederationRuleMatch> match)
Alias for calling Builder.match with
match.orElse(null).
-
match
final RuleUpdateParams.Body.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.Body.Builder name(String name)
Replaces the slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
-
name
final RuleUpdateParams.Body.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final RuleUpdateParams.Body.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.Body.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.Body.Builder oauthScope(Optional<String> oauthScope)
Alias for calling Builder.oauthScope with
oauthScope.orElse(null).
-
oauthScope
final RuleUpdateParams.Body.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.Body.Builder target(ServiceAccountTarget target)
Replaces the entire target object. Currently always a
service_accounttarget.
-
target
final RuleUpdateParams.Body.Builder target(Optional<ServiceAccountTarget> target)
Alias for calling Builder.target with
target.orElse(null).
-
target
final RuleUpdateParams.Body.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.Body.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.Body.Builder tokenLifetimeSeconds(Long tokenLifetimeSeconds)
Alias for Builder.tokenLifetimeSeconds.
This unboxed primitive overload exists for backwards compatibility.
-
tokenLifetimeSeconds
final RuleUpdateParams.Body.Builder tokenLifetimeSeconds(Optional<Long> tokenLifetimeSeconds)
Alias for calling Builder.tokenLifetimeSeconds with
tokenLifetimeSeconds.orElse(null).
-
tokenLifetimeSeconds
final RuleUpdateParams.Body.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.Body.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.Body.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
workspaceId
final RuleUpdateParams.Body.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.
-
additionalProperties
final RuleUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RuleUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RuleUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RuleUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RuleUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RuleUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-