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 ID of the user pool that contains the resource server configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
userPoolId
The ID of the user pool that contains the resource server configuration.
- Parameters:
userPoolId- The ID of the user pool that contains the resource server configuration.- 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.comas 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.comas 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.Builderavoiding the need to create one manually viaResourceServerScopeType.builder().When the
Consumercompletes,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:
-