Class SelfSignupPolicy.Builder

java.lang.Object
ai.vectros.types.SelfSignupPolicy.Builder
All Implemented Interfaces:
SelfSignupPolicy._FinalStage, SelfSignupPolicy.RoleIdStage, SelfSignupPolicy.SignupTypeStage
Enclosing class:
SelfSignupPolicy

public static final class SelfSignupPolicy.Builder extends Object implements SelfSignupPolicy.SignupTypeStage, SelfSignupPolicy.RoleIdStage, SelfSignupPolicy._FinalStage
  • Method Details

    • from

      Specified by:
      from in interface SelfSignupPolicy.SignupTypeStage
    • signupType

      public SelfSignupPolicy.RoleIdStage signupType(@NotNull @NotNull String signupType)

      The plain slug the frontend and the blueprint agree on to select this policy entry (e.g. 'practitioner', 'client'). Same grammar as a role id (lowercase letter first, then a-z 0-9 -, 3-31 chars). Caller-supplied at exchange time via the request's signup_type field; omitted on the request means 'the sole entry', valid only when this list has exactly one.

      The plain slug the frontend and the blueprint agree on to select this policy entry (e.g. 'practitioner', 'client'). Same grammar as a role id (lowercase letter first, then a-z 0-9 -, 3-31 chars). Caller-supplied at exchange time via the request's signup_type field; omitted on the request means 'the sole entry', valid only when this list has exactly one.

      Specified by:
      signupType in interface SelfSignupPolicy.SignupTypeStage
      Returns:
      Reference to this so that method calls can be chained together.
    • roleId

      public SelfSignupPolicy._FinalStage roleId(@NotNull @NotNull String roleId)

      The role a brand-new self-signup caller matching this signupType is bound to. Must never resolve to a role carrying elevated (provisioning or wildcard) scope — checked when you register this policy (skipped if the role doesn't exist yet) and always checked again, unskippable, at the moment a caller actually signs up.

      The role a brand-new self-signup caller matching this signupType is bound to. Must never resolve to a role carrying elevated (provisioning or wildcard) scope — checked when you register this policy (skipped if the role doesn't exist yet) and always checked again, unskippable, at the moment a caller actually signs up.

      Specified by:
      roleId in interface SelfSignupPolicy.RoleIdStage
      Returns:
      Reference to this so that method calls can be chained together.
    • build

      public SelfSignupPolicy build()
      Specified by:
      build in interface SelfSignupPolicy._FinalStage
    • additionalProperty

      public SelfSignupPolicy.Builder additionalProperty(String key, Object value)
      Specified by:
      additionalProperty in interface SelfSignupPolicy._FinalStage
    • additionalProperties

      public SelfSignupPolicy.Builder additionalProperties(Map<String,Object> additionalProperties)
      Specified by:
      additionalProperties in interface SelfSignupPolicy._FinalStage