Class TokenRequest.Builder
- All Implemented Interfaces:
TokenRequest._FinalStage,TokenRequest.ScopeStage
- Enclosing class:
TokenRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()expiresInSeconds(Integer expiresInSeconds) How long the token remains valid, in seconds.expiresInSeconds(Optional<Integer> expiresInSeconds) How long the token remains valid, in seconds.from(TokenRequest other) scope(@NotNull ScopeRequest scope) The Vectros user ID of the end user this token is minted for.The Vectros user ID of the end user this token is minted for.
-
Method Details
-
from
- Specified by:
fromin interfaceTokenRequest.ScopeStage
-
scope
- Specified by:
scopein interfaceTokenRequest.ScopeStage
-
expiresInSeconds
How long the token remains valid, in seconds. Maximum 86400 (24 hours); defaults to 3600 (1 hour).
- Specified by:
expiresInSecondsin interfaceTokenRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
expiresInSeconds
How long the token remains valid, in seconds. Maximum 86400 (24 hours); defaults to 3600 (1 hour).
- Specified by:
expiresInSecondsin interfaceTokenRequest._FinalStage
-
userId
The Vectros user ID of the end user this token is minted for. This is the UUID returned when you created the user via
POST /v1/users. Optional — omit it for service-to-service tokens that have no specific user context. If provided, it must reference a real user in your account. UseGET /v1/users?externalId={yourId}to resolve your own system's user ID to the Vectros user ID.- Specified by:
userIdin interfaceTokenRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
The Vectros user ID of the end user this token is minted for. This is the UUID returned when you created the user via
POST /v1/users. Optional — omit it for service-to-service tokens that have no specific user context. If provided, it must reference a real user in your account. UseGET /v1/users?externalId={yourId}to resolve your own system's user ID to the Vectros user ID.- Specified by:
userIdin interfaceTokenRequest._FinalStage
-
build
- Specified by:
buildin interfaceTokenRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceTokenRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceTokenRequest._FinalStage
-