Interface ResourceServerType.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceServerType.Builder,ResourceServerType>,SdkBuilder<ResourceServerType.Builder,ResourceServerType>,SdkPojo
- Enclosing class:
- ResourceServerType
public static interface ResourceServerType.Builder extends SdkPojo, CopyableBuilder<ResourceServerType.Builder,ResourceServerType>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceServerType.Builderidentifier(String identifier)A unique resource server identifier for the resource server.ResourceServerType.Buildername(String name)The name of the resource server.ResourceServerType.Builderscopes(Collection<ResourceServerScopeType> scopes)A list of scopes that are defined for the resource server.ResourceServerType.Builderscopes(Consumer<ResourceServerScopeType.Builder>... scopes)A list of scopes that are defined for the resource server.ResourceServerType.Builderscopes(ResourceServerScopeType... scopes)A list of scopes that are defined for the resource server.ResourceServerType.BuilderuserPoolId(String userPoolId)The ID of the user pool that contains the resource server configuration.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
userPoolId
ResourceServerType.Builder userPoolId(String 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
ResourceServerType.Builder identifier(String 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
ResourceServerType.Builder name(String 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
ResourceServerType.Builder scopes(Collection<ResourceServerScopeType> 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
ResourceServerType.Builder scopes(ResourceServerScopeType... 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
ResourceServerType.Builder scopes(Consumer<ResourceServerScopeType.Builder>... 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 to#scopes(List.) - 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:
#scopes(java.util.Collection)
-
-