Interface ResourceServerType.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResourceServerType.Builder,
,ResourceServerType> SdkBuilder<ResourceServerType.Builder,
,ResourceServerType> SdkPojo
- Enclosing class:
ResourceServerType
-
Method Summary
Modifier and TypeMethodDescriptionidentifier
(String identifier) A unique resource server identifier for the resource server.The name of the resource server.scopes
(Collection<ResourceServerScopeType> scopes) A list of scopes that are defined for the resource server.scopes
(Consumer<ResourceServerScopeType.Builder>... scopes) A list of scopes that are defined for the resource server.scopes
(ResourceServerScopeType... scopes) A list of scopes that are defined for the resource server.userPoolId
(String userPoolId) The user pool ID for the user pool that hosts the resource server.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
userPoolId
The user pool ID for the user pool that hosts the resource server.
- Parameters:
userPoolId
- The user pool ID for the user pool that hosts the resource server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifier
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- Parameters:
identifier
- A unique resource server identifier for the resource server. The identifier can be an API friendly name likesolar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the resource server.
- Parameters:
name
- The name of the resource server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopes
A list of scopes that are defined for the resource server.
- Parameters:
scopes
- A list of scopes that are defined for the resource server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopes
A list of scopes that are defined for the resource server.
- Parameters:
scopes
- A list of scopes that are defined for the resource server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopes
A list of scopes that are defined for the resource server.
This is a convenience method that creates an instance of theResourceServerScopeType.Builder
avoiding the need to create one manually viaResourceServerScopeType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscopes(List<ResourceServerScopeType>)
.- Parameters:
scopes
- a consumer that will call methods onResourceServerScopeType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-