Class RuleCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class RuleCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
issuerId
final RuleCreateParams.Body.Builder issuerId(String issuerId)
Tagged ID of the federation issuer.
-
issuerId
final RuleCreateParams.Body.Builder issuerId(JsonField<String> issuerId)
Sets Builder.issuerId to an arbitrary JSON value.
You should usually call Builder.issuerId 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 RuleCreateParams.Body.Builder match(BetaFederationRuleMatch match)
Conditions the verified JWT must satisfy for this rule to apply. At least one of
subject_prefix(other than a wildcard-only value like*),claims, orconditionis required;audiencealone is not sufficient.
-
match
final RuleCreateParams.Body.Builder match(JsonField<BetaFederationRuleMatch> match)
Sets Builder.match to an arbitrary JSON value.
You should usually call Builder.match with a well-typed BetaFederationRuleMatch value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final RuleCreateParams.Body.Builder name(String name)
Slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.
-
name
final RuleCreateParams.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 RuleCreateParams.Body.Builder oauthScope(String oauthScope)
Space-separated OAuth scopes. OAuth callers may only set
workspace:developerorworkspace:inference; other scopes (such asorg:admin) require a Console session.
-
oauthScope
final RuleCreateParams.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 RuleCreateParams.Body.Builder target(BetaServiceAccountTarget target)
Identity that tokens minted via this rule act as. Currently always a
service_accounttarget.
-
target
final RuleCreateParams.Body.Builder target(JsonField<BetaServiceAccountTarget> target)
Sets Builder.target to an arbitrary JSON value.
You should usually call Builder.target with a well-typed BetaServiceAccountTarget value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
appliesToAllWorkspaces
final RuleCreateParams.Body.Builder appliesToAllWorkspaces(Boolean appliesToAllWorkspaces)
When true, enable this rule for every workspace in the org (including workspaces created later).
-
appliesToAllWorkspaces
final RuleCreateParams.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.
-
attributes
final RuleCreateParams.Body.Builder attributes(RuleCreateParams.Attributes attributes)
CEL expressions
{name: expr}extracting named values from claims. Not yet supported; any non-empty value is rejected with 400.
-
attributes
final RuleCreateParams.Body.Builder attributes(Optional<RuleCreateParams.Attributes> attributes)
Alias for calling Builder.attributes with
attributes.orElse(null).
-
attributes
final RuleCreateParams.Body.Builder attributes(JsonField<RuleCreateParams.Attributes> attributes)
Sets Builder.attributes to an arbitrary JSON value.
You should usually call Builder.attributes with a well-typed Attributes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final RuleCreateParams.Body.Builder description(String description)
Optional free-text description.
-
description
final RuleCreateParams.Body.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final RuleCreateParams.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.
-
tokenLifetimeSeconds
final RuleCreateParams.Body.Builder tokenLifetimeSeconds(Long tokenLifetimeSeconds)
Lifetime in seconds for access tokens minted via this rule (60-86400). Defaults to 3600 (1h). Minted tokens are capped at
max(60, min(this value, 2 × remaining assertion validity))seconds.
-
tokenLifetimeSeconds
final RuleCreateParams.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 RuleCreateParams.Body.Builder workspaceId(String workspaceId)
Tagged ID of the workspace to enable this rule for. Required unless
applies_to_all_workspacesis true. Additional workspaces can be added via the/federation_rules/{federation_rule_id}/workspacessub-resource.
-
workspaceId
final RuleCreateParams.Body.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
workspaceId
final RuleCreateParams.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 RuleCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RuleCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RuleCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RuleCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RuleCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RuleCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.issuerId() .match() .name() .oauthScope() .target()
-
-
-
-