Class FederationRule.Builder
-
- All Implemented Interfaces:
public final class FederationRule.BuilderA builder for FederationRule.
-
-
Method Summary
Modifier and Type Method Description final FederationRule.Builderid(String id)Tagged ID of the federation rule. final FederationRule.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final FederationRule.BuilderappliesToAllWorkspaces(Boolean appliesToAllWorkspaces)When true, this rule is enabled for every workspace in the org (including ones created after the rule). final FederationRule.BuilderappliesToAllWorkspaces(JsonField<Boolean> appliesToAllWorkspaces)Sets Builder.appliesToAllWorkspaces to an arbitrary JSON value. final FederationRule.BuilderarchivedAt(OffsetDateTime archivedAt)If set, this rule is archived and rejects token exchange. final FederationRule.BuilderarchivedAt(Optional<OffsetDateTime> archivedAt)Alias for calling Builder.archivedAt with archivedAt.orElse(null).final FederationRule.BuilderarchivedAt(JsonField<OffsetDateTime> archivedAt)Sets Builder.archivedAt to an arbitrary JSON value. final FederationRule.BuilderarchivedByActorId(String archivedByActorId)Tagged ID ( user_/svac_) of the actor that archived this rule.final FederationRule.BuilderarchivedByActorId(Optional<String> archivedByActorId)Alias for calling Builder.archivedByActorId with archivedByActorId.orElse(null).final FederationRule.BuilderarchivedByActorId(JsonField<String> archivedByActorId)Sets Builder.archivedByActorId to an arbitrary JSON value. final FederationRule.BuildercreatedAt(OffsetDateTime createdAt)When this rule was created. final FederationRule.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final FederationRule.BuildercreatedByActorId(String createdByActorId)Tagged ID ( user_/svac_) of the actor that created this rule.final FederationRule.BuildercreatedByActorId(Optional<String> createdByActorId)Alias for calling Builder.createdByActorId with createdByActorId.orElse(null).final FederationRule.BuildercreatedByActorId(JsonField<String> createdByActorId)Sets Builder.createdByActorId to an arbitrary JSON value. final FederationRule.Builderdescription(String description)Optional free-text description. final FederationRule.Builderdescription(Optional<String> description)Alias for calling Builder.description with description.orElse(null).final FederationRule.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final FederationRule.BuilderissuerId(String issuerId)Tagged ID of the issuer whose tokens this rule accepts. final FederationRule.BuilderissuerId(JsonField<String> issuerId)Sets Builder.issuerId to an arbitrary JSON value. final FederationRule.BuilderissuerName(String issuerName)Issuer's display name at read time. final FederationRule.BuilderissuerName(Optional<String> issuerName)Alias for calling Builder.issuerName with issuerName.orElse(null).final FederationRule.BuilderissuerName(JsonField<String> issuerName)Sets Builder.issuerName to an arbitrary JSON value. final FederationRule.Buildermatch(FederationRuleMatch match)Conditions the verified JWT must satisfy for this rule to apply. final FederationRule.Buildermatch(JsonField<FederationRuleMatch> match)Sets Builder.match to an arbitrary JSON value. final FederationRule.Buildername(String name)Admin-chosen slug identifier. final FederationRule.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final FederationRule.BuilderoauthScope(String oauthScope)Space-separated OAuth scopes granted on the minted token. final FederationRule.BuilderoauthScope(JsonField<String> oauthScope)Sets Builder.oauthScope to an arbitrary JSON value. final FederationRule.Buildertarget(ServiceAccountTarget target)What this rule targets. final FederationRule.Buildertarget(JsonField<ServiceAccountTarget> target)Sets Builder.target to an arbitrary JSON value. final FederationRule.BuildertokenLifetimeSeconds(Long tokenLifetimeSeconds)Lifetime in seconds of access tokens minted via this rule. final FederationRule.BuildertokenLifetimeSeconds(JsonField<Long> tokenLifetimeSeconds)Sets Builder.tokenLifetimeSeconds to an arbitrary JSON value. final FederationRule.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final FederationRule.BuilderupdatedAt(OffsetDateTime updatedAt)When this rule was last updated. final FederationRule.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final FederationRule.BuilderupdatedByActorId(String updatedByActorId)Tagged ID ( user_/svac_) of the actor that last updated this rule.final FederationRule.BuilderupdatedByActorId(Optional<String> updatedByActorId)Alias for calling Builder.updatedByActorId with updatedByActorId.orElse(null).final FederationRule.BuilderupdatedByActorId(JsonField<String> updatedByActorId)Sets Builder.updatedByActorId to an arbitrary JSON value. final FederationRule.BuilderworkspaceIds(List<String> workspaceIds)Tagged IDs of the workspaces this rule is enabled for. final FederationRule.BuilderworkspaceIds(JsonField<List<String>> workspaceIds)Sets Builder.workspaceIds to an arbitrary JSON value. final FederationRule.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final FederationRule.BuilderaddWorkspaceId(String workspaceId)Adds a single String to workspaceIds. final FederationRule.BuilderputAdditionalProperty(String key, JsonValue value)final FederationRule.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final FederationRule.BuilderremoveAdditionalProperty(String key)final FederationRule.BuilderremoveAllAdditionalProperties(Set<String> keys)final FederationRulebuild()Returns an immutable instance of FederationRule. -
-
Method Detail
-
id
final FederationRule.Builder id(String id)
Tagged ID of the federation rule.
-
id
final FederationRule.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 FederationRule.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 FederationRule.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 FederationRule.Builder archivedAt(OffsetDateTime archivedAt)
If set, this rule is archived and rejects token exchange.
-
archivedAt
final FederationRule.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final FederationRule.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 FederationRule.Builder archivedByActorId(String archivedByActorId)
Tagged ID (
user_/svac_) of the actor that archived this rule.
-
archivedByActorId
final FederationRule.Builder archivedByActorId(Optional<String> archivedByActorId)
Alias for calling Builder.archivedByActorId with
archivedByActorId.orElse(null).
-
archivedByActorId
final FederationRule.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.
-
createdAt
final FederationRule.Builder createdAt(OffsetDateTime createdAt)
When this rule was created.
-
createdAt
final FederationRule.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 FederationRule.Builder createdByActorId(String createdByActorId)
Tagged ID (
user_/svac_) of the actor that created this rule.
-
createdByActorId
final FederationRule.Builder createdByActorId(Optional<String> createdByActorId)
Alias for calling Builder.createdByActorId with
createdByActorId.orElse(null).
-
createdByActorId
final FederationRule.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 FederationRule.Builder description(String description)
Optional free-text description.
-
description
final FederationRule.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final FederationRule.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 FederationRule.Builder issuerId(String issuerId)
Tagged ID of the issuer whose tokens this rule accepts.
-
issuerId
final FederationRule.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 FederationRule.Builder issuerName(String issuerName)
Issuer's display name at read time.
-
issuerName
final FederationRule.Builder issuerName(Optional<String> issuerName)
Alias for calling Builder.issuerName with
issuerName.orElse(null).
-
issuerName
final FederationRule.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 FederationRule.Builder match(FederationRuleMatch match)
Conditions the verified JWT must satisfy for this rule to apply. All populated matcher fields must pass.
-
match
final FederationRule.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 FederationRule.Builder name(String name)
Admin-chosen slug identifier.
-
name
final FederationRule.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 FederationRule.Builder oauthScope(String oauthScope)
Space-separated OAuth scopes granted on the minted token.
-
oauthScope
final FederationRule.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 FederationRule.Builder target(ServiceAccountTarget 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 FederationRule.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 FederationRule.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 FederationRule.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 FederationRule.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 FederationRule.Builder updatedAt(OffsetDateTime updatedAt)
When this rule was last updated.
-
updatedAt
final FederationRule.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 FederationRule.Builder updatedByActorId(String updatedByActorId)
Tagged ID (
user_/svac_) of the actor that last updated this rule.
-
updatedByActorId
final FederationRule.Builder updatedByActorId(Optional<String> updatedByActorId)
Alias for calling Builder.updatedByActorId with
updatedByActorId.orElse(null).
-
updatedByActorId
final FederationRule.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.
-
workspaceIds
final FederationRule.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 FederationRule.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 FederationRule.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addWorkspaceId
final FederationRule.Builder addWorkspaceId(String workspaceId)
Adds a single String to workspaceIds.
-
putAdditionalProperty
final FederationRule.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FederationRule.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FederationRule.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FederationRule.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FederationRule build()
Returns an immutable instance of FederationRule.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .appliesToAllWorkspaces() .archivedAt() .archivedByActorId() .createdAt() .createdByActorId() .description() .issuerId() .issuerName() .match() .name() .oauthScope() .target() .tokenLifetimeSeconds() .updatedAt() .updatedByActorId() .workspaceIds()
-
-
-
-