Class BetaFederationRule.Builder
-
- All Implemented Interfaces:
public final class BetaFederationRule.BuilderA builder for BetaFederationRule.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaFederationRule.Builder id(String id)
Tagged ID of the federation rule.
-
id
final BetaFederationRule.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.
-
appliesToAllWorkspaces
final BetaFederationRule.Builder appliesToAllWorkspaces(Boolean appliesToAllWorkspaces)
When true, this rule is enabled for every workspace in the org (including ones created after the rule).
workspace_idsis ignored at exchange time.
-
appliesToAllWorkspaces
final BetaFederationRule.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.
-
archivedAt
final BetaFederationRule.Builder archivedAt(OffsetDateTime archivedAt)
If set, this rule is archived and rejects token exchange.
-
archivedAt
final BetaFederationRule.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaFederationRule.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedByActorId
final BetaFederationRule.Builder archivedByActorId(String archivedByActorId)
Tagged ID (
user_/svac_) of the actor that archived this rule.
-
archivedByActorId
final BetaFederationRule.Builder archivedByActorId(Optional<String> archivedByActorId)
Alias for calling Builder.archivedByActorId with
archivedByActorId.orElse(null).
-
archivedByActorId
final BetaFederationRule.Builder archivedByActorId(JsonField<String> archivedByActorId)
Sets Builder.archivedByActorId to an arbitrary JSON value.
You should usually call Builder.archivedByActorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
attributes
final BetaFederationRule.Builder attributes(BetaFederationRule.Attributes attributes)
CEL expressions extracting named values from claims. Not yet supported; always null.
-
attributes
final BetaFederationRule.Builder attributes(Optional<BetaFederationRule.Attributes> attributes)
Alias for calling Builder.attributes with
attributes.orElse(null).
-
attributes
final BetaFederationRule.Builder attributes(JsonField<BetaFederationRule.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.
-
createdAt
final BetaFederationRule.Builder createdAt(OffsetDateTime createdAt)
When this rule was created.
-
createdAt
final BetaFederationRule.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.
-
createdByActorId
final BetaFederationRule.Builder createdByActorId(String createdByActorId)
Tagged ID (
user_/svac_) of the actor that created this rule.
-
createdByActorId
final BetaFederationRule.Builder createdByActorId(Optional<String> createdByActorId)
Alias for calling Builder.createdByActorId with
createdByActorId.orElse(null).
-
createdByActorId
final BetaFederationRule.Builder createdByActorId(JsonField<String> createdByActorId)
Sets Builder.createdByActorId to an arbitrary JSON value.
You should usually call Builder.createdByActorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaFederationRule.Builder description(String description)
Optional free-text description.
-
description
final BetaFederationRule.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final BetaFederationRule.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.
-
issuerId
final BetaFederationRule.Builder issuerId(String issuerId)
Tagged ID of the issuer whose tokens this rule accepts.
-
issuerId
final BetaFederationRule.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.
-
issuerName
final BetaFederationRule.Builder issuerName(String issuerName)
Issuer's display name at read time.
-
issuerName
final BetaFederationRule.Builder issuerName(Optional<String> issuerName)
Alias for calling Builder.issuerName with
issuerName.orElse(null).
-
issuerName
final BetaFederationRule.Builder issuerName(JsonField<String> issuerName)
Sets Builder.issuerName to an arbitrary JSON value.
You should usually call Builder.issuerName 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 BetaFederationRule.Builder match(BetaFederationRuleMatch match)
Conditions the verified JWT must satisfy for this rule to apply. All populated matcher fields must pass.
-
match
final BetaFederationRule.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 BetaFederationRule.Builder name(String name)
Admin-chosen slug identifier.
-
name
final BetaFederationRule.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 BetaFederationRule.Builder oauthScope(String oauthScope)
Space-separated OAuth scopes granted on the minted token.
-
oauthScope
final BetaFederationRule.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 BetaFederationRule.Builder target(BetaServiceAccountTarget target)
What this rule targets. Check
typebefore reading the other fields. Tokens minted via a rule whose targettypeisservice_accountact as that service account.
-
target
final BetaFederationRule.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.
-
tokenLifetimeSeconds
final BetaFederationRule.Builder tokenLifetimeSeconds(Long tokenLifetimeSeconds)
Lifetime in seconds of access tokens minted via this rule. Minted tokens are capped at
max(60, min(this value, 2 × remaining assertion validity))seconds.
-
tokenLifetimeSeconds
final BetaFederationRule.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.
-
type
final BetaFederationRule.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("federation_rule")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaFederationRule.Builder updatedAt(OffsetDateTime updatedAt)
When this rule was last updated.
-
updatedAt
final BetaFederationRule.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedByActorId
final BetaFederationRule.Builder updatedByActorId(String updatedByActorId)
Tagged ID (
user_/svac_) of the actor that last updated this rule.
-
updatedByActorId
final BetaFederationRule.Builder updatedByActorId(Optional<String> updatedByActorId)
Alias for calling Builder.updatedByActorId with
updatedByActorId.orElse(null).
-
updatedByActorId
final BetaFederationRule.Builder updatedByActorId(JsonField<String> updatedByActorId)
Sets Builder.updatedByActorId to an arbitrary JSON value.
You should usually call Builder.updatedByActorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaceId
final BetaFederationRule.Builder workspaceId(String workspaceId)
Legacy single-workspace binding. Prefer
workspace_idsand the/federation_rules/{federation_rule_id}/workspacessub-resource for managing workspace enablement.
-
workspaceId
final BetaFederationRule.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
workspaceId
final BetaFederationRule.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.
-
workspaceIds
final BetaFederationRule.Builder workspaceIds(List<String> workspaceIds)
Tagged IDs of the workspaces this rule is enabled for. May be empty for older rules that only carry the legacy
workspace_idbinding. Ignored at exchange time whenapplies_to_all_workspacesis true (the list may still be non-empty).
-
workspaceIds
final BetaFederationRule.Builder workspaceIds(JsonField<List<String>> workspaceIds)
Sets Builder.workspaceIds to an arbitrary JSON value.
You should usually call Builder.workspaceIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaFederationRule.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addWorkspaceId
final BetaFederationRule.Builder addWorkspaceId(String workspaceId)
Adds a single String to workspaceIds.
-
putAdditionalProperty
final BetaFederationRule.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaFederationRule.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaFederationRule.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaFederationRule.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaFederationRule build()
Returns an immutable instance of BetaFederationRule.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .appliesToAllWorkspaces() .archivedAt() .archivedByActorId() .attributes() .createdAt() .createdByActorId() .description() .issuerId() .issuerName() .match() .name() .oauthScope() .target() .tokenLifetimeSeconds() .updatedAt() .updatedByActorId() .workspaceId() .workspaceIds()
-
-
-
-